// Lean compiler output
// Module: Lean.Meta.Offset
// Imports: Init Lean.Data.LBool Lean.Meta.InferType
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__1(lean_object*);
lean_object* l_Lean_Meta_isDefEqOffset_match__2___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__2___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__3___rarg(lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_isDefEqOffset_match__4(lean_object*);
lean_object* lean_name_mk_string(lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__11;
lean_object* l_Lean_Meta_evalNat_visit___closed__12;
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__3(lean_object*);
lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat_visit_match__1(lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__1___rarg(lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__16;
uint8_t lean_name_eq(lean_object*, lean_object*);
extern lean_object* l_Lean_Literal_type___closed__3;
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__4(lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_withInstantiatedMVars___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_isDefEqOffset_match__5(lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__10;
lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_add(lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__6___rarg(lean_object*, uint8_t, lean_object*, lean_object*);
lean_object* l_Lean_Meta_isDefEqOffset_match__3___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__20;
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__9;
lean_object* lean_nat_sub(lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__19;
lean_object* l_Lean_Meta_isDefEqOffset_match__2(lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__5(lean_object*);
extern lean_object* l_myMacro____x40_Init_Notation___hyg_2964____closed__7;
lean_object* l_Lean_Meta_isDefEqOffset(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_isDefEqOffset_match__6(lean_object*);
extern lean_object* l_Lean_Literal_type___closed__1;
lean_object* l_Lean_Meta_evalNat_match__1(lean_object*);
extern lean_object* l_Lean_Expr_isCharLit___closed__3;
lean_object* l_Lean_Meta_isDefEqOffset_match__1(lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__18;
extern lean_object* l_Lean_Literal_type___closed__2;
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__13;
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__2___rarg(lean_object*, lean_object*);
extern lean_object* l_Lean_Syntax_decodeNatLitVal_x3f___closed__1;
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__1(lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__14;
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__2(lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__6;
lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__8;
lean_object* l_Lean_Meta_evalNat_visit___closed__4;
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__6(lean_object*);
uint8_t l_Lean_Expr_isMVar(lean_object*);
extern lean_object* l_myMacro____x40_Init_Notation___hyg_2705____closed__7;
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__1;
extern lean_object* l_myMacro____x40_Init_Notation___hyg_3223____closed__7;
uint8_t l_Bool_toLBool(uint8_t);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__2(lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__17;
lean_object* lean_nat_mul(lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__3;
lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__15;
lean_object* l_Lean_Meta_isDefEqOffset_match__5___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__2;
lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffset(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset___closed__1;
lean_object* l_Lean_Meta_isDefEqOffset_match__3(lean_object*);
lean_object* l_Lean_mkNatLit(lean_object*);
lean_object* l_Lean_Expr_getAppFn(lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__7;
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__4___rarg(lean_object*, lean_object*);
lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_isDefEqOffset_match__4___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero_match__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero_match__1(lean_object*);
lean_object* l_Lean_Meta_evalNat_visit_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkConst(lean_object*, lean_object*);
lean_object* l_Lean_Meta_isDefEqOffset_match__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalNat_match__1___rarg___closed__1;
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_withInstantiatedMVars(lean_object*);
lean_object* l_Lean_Meta_evalNat_visit___closed__5;
lean_object* l_Lean_Meta_evalNat_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
lean_object* l_Lean_Meta_isDefEqOffset_match__6___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_withInstantiatedMVars___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_8 = l_Lean_Meta_instantiateMVars(x_1, x_3, x_4, x_5, x_6, x_7);
if (lean_obj_tag(x_8) == 0)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_10 = lean_ctor_get(x_8, 0);
x_11 = lean_ctor_get(x_8, 1);
x_12 = l_Lean_Expr_getAppFn(x_10);
x_13 = l_Lean_Expr_isMVar(x_12);
lean_dec(x_12);
if (x_13 == 0)
{
lean_object* x_14; 
lean_free_object(x_8);
x_14 = lean_apply_6(x_2, x_10, x_3, x_4, x_5, x_6, x_11);
return x_14;
}
else
{
lean_object* x_15; 
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_15 = lean_box(0);
lean_ctor_set(x_8, 0, x_15);
return x_8;
}
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; 
x_16 = lean_ctor_get(x_8, 0);
x_17 = lean_ctor_get(x_8, 1);
lean_inc(x_17);
lean_inc(x_16);
lean_dec(x_8);
x_18 = l_Lean_Expr_getAppFn(x_16);
x_19 = l_Lean_Expr_isMVar(x_18);
lean_dec(x_18);
if (x_19 == 0)
{
lean_object* x_20; 
x_20 = lean_apply_6(x_2, x_16, x_3, x_4, x_5, x_6, x_17);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; 
lean_dec(x_16);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_21 = lean_box(0);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_17);
return x_22;
}
}
}
else
{
uint8_t x_23; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_23 = !lean_is_exclusive(x_8);
if (x_23 == 0)
{
return x_8;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_24 = lean_ctor_get(x_8, 0);
x_25 = lean_ctor_get(x_8, 1);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_8);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_24);
lean_ctor_set(x_26, 1, x_25);
return x_26;
}
}
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_withInstantiatedMVars(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_withInstantiatedMVars___rarg), 7, 0);
return x_2;
}
}
lean_object* l_Lean_Meta_evalNat_visit_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 2:
{
lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; 
lean_dec(x_4);
lean_dec(x_3);
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
lean_dec(x_1);
x_7 = lean_box_uint64(x_6);
x_8 = lean_apply_2(x_2, x_5, x_7);
return x_8;
}
case 4:
{
lean_object* x_9; lean_object* x_10; uint64_t x_11; lean_object* x_12; lean_object* x_13; 
lean_dec(x_4);
lean_dec(x_2);
x_9 = lean_ctor_get(x_1, 0);
lean_inc(x_9);
x_10 = lean_ctor_get(x_1, 1);
lean_inc(x_10);
x_11 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
lean_dec(x_1);
x_12 = lean_box_uint64(x_11);
x_13 = lean_apply_3(x_3, x_9, x_10, x_12);
return x_13;
}
default: 
{
lean_object* x_14; 
lean_dec(x_3);
lean_dec(x_2);
x_14 = lean_apply_1(x_4, x_1);
return x_14;
}
}
}
}
lean_object* l_Lean_Meta_evalNat_visit_match__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_evalNat_visit_match__1___rarg), 4, 0);
return x_2;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_match__1___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("zero");
return x_1;
}
}
lean_object* l_Lean_Meta_evalNat_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 2:
{
lean_object* x_8; uint64_t x_9; lean_object* x_10; lean_object* x_11; 
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_8 = lean_ctor_get(x_1, 0);
lean_inc(x_8);
x_9 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
x_10 = lean_box_uint64(x_9);
x_11 = lean_apply_3(x_6, x_1, x_8, x_10);
return x_11;
}
case 4:
{
lean_object* x_12; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
x_12 = lean_ctor_get(x_1, 0);
lean_inc(x_12);
if (lean_obj_tag(x_12) == 1)
{
lean_object* x_13; 
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
if (lean_obj_tag(x_13) == 1)
{
lean_object* x_14; 
x_14 = lean_ctor_get(x_13, 0);
lean_inc(x_14);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_ctor_get(x_1, 1);
lean_inc(x_15);
x_16 = !lean_is_exclusive(x_12);
if (x_16 == 0)
{
uint64_t x_17; lean_object* x_18; size_t x_19; lean_object* x_20; uint8_t x_21; 
x_17 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
x_18 = lean_ctor_get(x_12, 1);
x_19 = lean_ctor_get_usize(x_12, 2);
x_20 = lean_ctor_get(x_12, 0);
lean_dec(x_20);
x_21 = !lean_is_exclusive(x_13);
if (x_21 == 0)
{
lean_object* x_22; size_t x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; 
x_22 = lean_ctor_get(x_13, 1);
x_23 = lean_ctor_get_usize(x_13, 2);
x_24 = lean_ctor_get(x_13, 0);
lean_dec(x_24);
x_25 = l_Lean_Literal_type___closed__1;
x_26 = lean_string_dec_eq(x_22, x_25);
lean_dec(x_22);
if (x_26 == 0)
{
lean_object* x_27; 
lean_free_object(x_13);
lean_free_object(x_12);
lean_dec(x_18);
lean_dec(x_15);
lean_dec(x_4);
x_27 = lean_apply_1(x_7, x_1);
return x_27;
}
else
{
uint8_t x_28; 
x_28 = !lean_is_exclusive(x_1);
if (x_28 == 0)
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
x_29 = lean_ctor_get(x_1, 1);
lean_dec(x_29);
x_30 = lean_ctor_get(x_1, 0);
lean_dec(x_30);
x_31 = l_Lean_Meta_evalNat_match__1___rarg___closed__1;
x_32 = lean_string_dec_eq(x_18, x_31);
if (x_32 == 0)
{
lean_object* x_33; 
lean_dec(x_4);
lean_ctor_set(x_13, 1, x_25);
x_33 = lean_apply_1(x_7, x_1);
return x_33;
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
lean_free_object(x_1);
lean_free_object(x_13);
lean_free_object(x_12);
lean_dec(x_18);
lean_dec(x_7);
x_34 = lean_box_uint64(x_17);
x_35 = lean_box_usize(x_23);
x_36 = lean_box_usize(x_19);
x_37 = lean_apply_4(x_4, x_15, x_34, x_35, x_36);
return x_37;
}
}
else
{
lean_object* x_38; uint8_t x_39; 
lean_dec(x_1);
x_38 = l_Lean_Meta_evalNat_match__1___rarg___closed__1;
x_39 = lean_string_dec_eq(x_18, x_38);
if (x_39 == 0)
{
lean_object* x_40; lean_object* x_41; 
lean_dec(x_4);
lean_ctor_set(x_13, 1, x_25);
x_40 = lean_alloc_ctor(4, 2, 8);
lean_ctor_set(x_40, 0, x_12);
lean_ctor_set(x_40, 1, x_15);
lean_ctor_set_uint64(x_40, sizeof(void*)*2, x_17);
x_41 = lean_apply_1(x_7, x_40);
return x_41;
}
else
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 
lean_free_object(x_13);
lean_free_object(x_12);
lean_dec(x_18);
lean_dec(x_7);
x_42 = lean_box_uint64(x_17);
x_43 = lean_box_usize(x_23);
x_44 = lean_box_usize(x_19);
x_45 = lean_apply_4(x_4, x_15, x_42, x_43, x_44);
return x_45;
}
}
}
}
else
{
lean_object* x_46; size_t x_47; lean_object* x_48; uint8_t x_49; 
x_46 = lean_ctor_get(x_13, 1);
x_47 = lean_ctor_get_usize(x_13, 2);
lean_inc(x_46);
lean_dec(x_13);
x_48 = l_Lean_Literal_type___closed__1;
x_49 = lean_string_dec_eq(x_46, x_48);
lean_dec(x_46);
if (x_49 == 0)
{
lean_object* x_50; 
lean_free_object(x_12);
lean_dec(x_18);
lean_dec(x_15);
lean_dec(x_4);
x_50 = lean_apply_1(x_7, x_1);
return x_50;
}
else
{
lean_object* x_51; lean_object* x_52; uint8_t x_53; 
if (lean_is_exclusive(x_1)) {
 lean_ctor_release(x_1, 0);
 lean_ctor_release(x_1, 1);
 x_51 = x_1;
} else {
 lean_dec_ref(x_1);
 x_51 = lean_box(0);
}
x_52 = l_Lean_Meta_evalNat_match__1___rarg___closed__1;
x_53 = lean_string_dec_eq(x_18, x_52);
if (x_53 == 0)
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; 
lean_dec(x_4);
x_54 = lean_alloc_ctor(1, 2, sizeof(size_t)*1);
lean_ctor_set(x_54, 0, x_14);
lean_ctor_set(x_54, 1, x_48);
lean_ctor_set_usize(x_54, 2, x_47);
lean_ctor_set(x_12, 0, x_54);
if (lean_is_scalar(x_51)) {
 x_55 = lean_alloc_ctor(4, 2, 8);
} else {
 x_55 = x_51;
}
lean_ctor_set(x_55, 0, x_12);
lean_ctor_set(x_55, 1, x_15);
lean_ctor_set_uint64(x_55, sizeof(void*)*2, x_17);
x_56 = lean_apply_1(x_7, x_55);
return x_56;
}
else
{
lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; 
lean_dec(x_51);
lean_free_object(x_12);
lean_dec(x_18);
lean_dec(x_7);
x_57 = lean_box_uint64(x_17);
x_58 = lean_box_usize(x_47);
x_59 = lean_box_usize(x_19);
x_60 = lean_apply_4(x_4, x_15, x_57, x_58, x_59);
return x_60;
}
}
}
}
else
{
uint64_t x_61; lean_object* x_62; size_t x_63; lean_object* x_64; size_t x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; 
x_61 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
x_62 = lean_ctor_get(x_12, 1);
x_63 = lean_ctor_get_usize(x_12, 2);
lean_inc(x_62);
lean_dec(x_12);
x_64 = lean_ctor_get(x_13, 1);
lean_inc(x_64);
x_65 = lean_ctor_get_usize(x_13, 2);
if (lean_is_exclusive(x_13)) {
 lean_ctor_release(x_13, 0);
 lean_ctor_release(x_13, 1);
 x_66 = x_13;
} else {
 lean_dec_ref(x_13);
 x_66 = lean_box(0);
}
x_67 = l_Lean_Literal_type___closed__1;
x_68 = lean_string_dec_eq(x_64, x_67);
lean_dec(x_64);
if (x_68 == 0)
{
lean_object* x_69; 
lean_dec(x_66);
lean_dec(x_62);
lean_dec(x_15);
lean_dec(x_4);
x_69 = lean_apply_1(x_7, x_1);
return x_69;
}
else
{
lean_object* x_70; lean_object* x_71; uint8_t x_72; 
if (lean_is_exclusive(x_1)) {
 lean_ctor_release(x_1, 0);
 lean_ctor_release(x_1, 1);
 x_70 = x_1;
} else {
 lean_dec_ref(x_1);
 x_70 = lean_box(0);
}
x_71 = l_Lean_Meta_evalNat_match__1___rarg___closed__1;
x_72 = lean_string_dec_eq(x_62, x_71);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; 
lean_dec(x_4);
if (lean_is_scalar(x_66)) {
 x_73 = lean_alloc_ctor(1, 2, sizeof(size_t)*1);
} else {
 x_73 = x_66;
}
lean_ctor_set(x_73, 0, x_14);
lean_ctor_set(x_73, 1, x_67);
lean_ctor_set_usize(x_73, 2, x_65);
x_74 = lean_alloc_ctor(1, 2, sizeof(size_t)*1);
lean_ctor_set(x_74, 0, x_73);
lean_ctor_set(x_74, 1, x_62);
lean_ctor_set_usize(x_74, 2, x_63);
if (lean_is_scalar(x_70)) {
 x_75 = lean_alloc_ctor(4, 2, 8);
} else {
 x_75 = x_70;
}
lean_ctor_set(x_75, 0, x_74);
lean_ctor_set(x_75, 1, x_15);
lean_ctor_set_uint64(x_75, sizeof(void*)*2, x_61);
x_76 = lean_apply_1(x_7, x_75);
return x_76;
}
else
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; 
lean_dec(x_70);
lean_dec(x_66);
lean_dec(x_62);
lean_dec(x_7);
x_77 = lean_box_uint64(x_61);
x_78 = lean_box_usize(x_65);
x_79 = lean_box_usize(x_63);
x_80 = lean_apply_4(x_4, x_15, x_77, x_78, x_79);
return x_80;
}
}
}
}
else
{
lean_object* x_81; 
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_4);
x_81 = lean_apply_1(x_7, x_1);
return x_81;
}
}
else
{
lean_object* x_82; 
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_4);
x_82 = lean_apply_1(x_7, x_1);
return x_82;
}
}
else
{
lean_object* x_83; 
lean_dec(x_12);
lean_dec(x_4);
x_83 = lean_apply_1(x_7, x_1);
return x_83;
}
}
case 5:
{
lean_object* x_84; lean_object* x_85; uint64_t x_86; lean_object* x_87; lean_object* x_88; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_84 = lean_ctor_get(x_1, 0);
lean_inc(x_84);
x_85 = lean_ctor_get(x_1, 1);
lean_inc(x_85);
x_86 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
x_87 = lean_box_uint64(x_86);
x_88 = lean_apply_4(x_5, x_1, x_84, x_85, x_87);
return x_88;
}
case 9:
{
lean_object* x_89; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_89 = lean_ctor_get(x_1, 0);
lean_inc(x_89);
if (lean_obj_tag(x_89) == 0)
{
uint64_t x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; 
lean_dec(x_7);
x_90 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
lean_dec(x_1);
x_91 = lean_ctor_get(x_89, 0);
lean_inc(x_91);
lean_dec(x_89);
x_92 = lean_box_uint64(x_90);
x_93 = lean_apply_2(x_2, x_91, x_92);
return x_93;
}
else
{
lean_object* x_94; 
lean_dec(x_89);
lean_dec(x_2);
x_94 = lean_apply_1(x_7, x_1);
return x_94;
}
}
case 10:
{
lean_object* x_95; lean_object* x_96; uint64_t x_97; lean_object* x_98; lean_object* x_99; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
x_95 = lean_ctor_get(x_1, 0);
lean_inc(x_95);
x_96 = lean_ctor_get(x_1, 1);
lean_inc(x_96);
x_97 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
lean_dec(x_1);
x_98 = lean_box_uint64(x_97);
x_99 = lean_apply_3(x_3, x_95, x_96, x_98);
return x_99;
}
default: 
{
lean_object* x_100; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_100 = lean_apply_1(x_7, x_1);
return x_100;
}
}
}
}
lean_object* l_Lean_Meta_evalNat_match__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_evalNat_match__1___rarg), 7, 0);
return x_2;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("OfNat");
return x_1;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Meta_evalNat_visit___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Meta_evalNat_visit___closed__2;
x_2 = l_Lean_Expr_isCharLit___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Mul");
return x_1;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Meta_evalNat_visit___closed__4;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("mul");
return x_1;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Meta_evalNat_visit___closed__5;
x_2 = l_Lean_Meta_evalNat_visit___closed__6;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Add");
return x_1;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Meta_evalNat_visit___closed__8;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("add");
return x_1;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Meta_evalNat_visit___closed__9;
x_2 = l_Lean_Meta_evalNat_visit___closed__10;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Sub");
return x_1;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Meta_evalNat_visit___closed__12;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("sub");
return x_1;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Meta_evalNat_visit___closed__13;
x_2 = l_Lean_Meta_evalNat_visit___closed__14;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Literal_type___closed__2;
x_2 = l_Lean_Meta_evalNat_visit___closed__14;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Literal_type___closed__2;
x_2 = l_Lean_Meta_evalNat_visit___closed__6;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("succ");
return x_1;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Literal_type___closed__2;
x_2 = l_Lean_Meta_evalNat_visit___closed__18;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_evalNat_visit___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Literal_type___closed__2;
x_2 = l_Lean_Meta_evalNat_visit___closed__10;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
lean_object* l_Lean_Meta_evalNat_visit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Expr_getAppFn(x_1);
switch (lean_obj_tag(x_7)) {
case 2:
{
lean_object* x_8; 
lean_dec(x_7);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_8 = l_Lean_Meta_instantiateMVars(x_1, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_8) == 0)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_10 = lean_ctor_get(x_8, 0);
x_11 = lean_ctor_get(x_8, 1);
x_12 = l_Lean_Expr_getAppFn(x_10);
x_13 = l_Lean_Expr_isMVar(x_12);
lean_dec(x_12);
if (x_13 == 0)
{
lean_object* x_14; 
lean_free_object(x_8);
x_14 = l_Lean_Meta_evalNat(x_10, x_2, x_3, x_4, x_5, x_11);
return x_14;
}
else
{
lean_object* x_15; 
lean_dec(x_10);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_15 = lean_box(0);
lean_ctor_set(x_8, 0, x_15);
return x_8;
}
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; 
x_16 = lean_ctor_get(x_8, 0);
x_17 = lean_ctor_get(x_8, 1);
lean_inc(x_17);
lean_inc(x_16);
lean_dec(x_8);
x_18 = l_Lean_Expr_getAppFn(x_16);
x_19 = l_Lean_Expr_isMVar(x_18);
lean_dec(x_18);
if (x_19 == 0)
{
lean_object* x_20; 
x_20 = l_Lean_Meta_evalNat(x_16, x_2, x_3, x_4, x_5, x_17);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; 
lean_dec(x_16);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_21 = lean_box(0);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_17);
return x_22;
}
}
}
else
{
uint8_t x_23; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_23 = !lean_is_exclusive(x_8);
if (x_23 == 0)
{
return x_8;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_24 = lean_ctor_get(x_8, 0);
x_25 = lean_ctor_get(x_8, 1);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_8);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_24);
lean_ctor_set(x_26, 1, x_25);
return x_26;
}
}
}
case 4:
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_45; lean_object* x_156; lean_object* x_207; lean_object* x_276; lean_object* x_387; lean_object* x_436; lean_object* x_543; uint8_t x_544; 
x_27 = lean_ctor_get(x_7, 0);
lean_inc(x_27);
lean_dec(x_7);
x_28 = lean_unsigned_to_nat(0u);
x_29 = l_Lean_Expr_getAppNumArgsAux(x_1, x_28);
x_543 = l_Lean_Meta_evalNat_visit___closed__19;
x_544 = lean_name_eq(x_27, x_543);
if (x_544 == 0)
{
lean_object* x_545; uint8_t x_546; 
x_545 = l_Lean_Meta_evalNat_visit___closed__20;
x_546 = lean_name_eq(x_27, x_545);
if (x_546 == 0)
{
lean_object* x_547; 
x_547 = lean_box(0);
x_436 = x_547;
goto block_542;
}
else
{
lean_object* x_548; uint8_t x_549; 
x_548 = lean_unsigned_to_nat(2u);
x_549 = lean_nat_dec_eq(x_29, x_548);
if (x_549 == 0)
{
lean_object* x_550; 
x_550 = lean_box(0);
x_436 = x_550;
goto block_542;
}
else
{
lean_object* x_551; 
lean_dec(x_27);
x_551 = lean_box(0);
x_387 = x_551;
goto block_435;
}
}
}
else
{
lean_object* x_552; uint8_t x_553; 
x_552 = lean_unsigned_to_nat(1u);
x_553 = lean_nat_dec_eq(x_29, x_552);
if (x_553 == 0)
{
lean_object* x_554; uint8_t x_555; 
x_554 = l_Lean_Meta_evalNat_visit___closed__20;
x_555 = lean_name_eq(x_27, x_554);
if (x_555 == 0)
{
lean_object* x_556; 
x_556 = lean_box(0);
x_436 = x_556;
goto block_542;
}
else
{
lean_object* x_557; uint8_t x_558; 
x_557 = lean_unsigned_to_nat(2u);
x_558 = lean_nat_dec_eq(x_29, x_557);
if (x_558 == 0)
{
lean_object* x_559; 
x_559 = lean_box(0);
x_436 = x_559;
goto block_542;
}
else
{
lean_object* x_560; 
lean_dec(x_27);
x_560 = lean_box(0);
x_387 = x_560;
goto block_435;
}
}
}
else
{
lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; 
lean_dec(x_27);
x_561 = lean_nat_sub(x_29, x_28);
lean_dec(x_29);
x_562 = lean_nat_sub(x_561, x_552);
lean_dec(x_561);
x_563 = l_Lean_Expr_getRevArg_x21(x_1, x_562);
lean_dec(x_1);
x_564 = l_Lean_Meta_evalNat(x_563, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_564) == 0)
{
lean_object* x_565; 
x_565 = lean_ctor_get(x_564, 0);
lean_inc(x_565);
if (lean_obj_tag(x_565) == 0)
{
uint8_t x_566; 
x_566 = !lean_is_exclusive(x_564);
if (x_566 == 0)
{
lean_object* x_567; lean_object* x_568; 
x_567 = lean_ctor_get(x_564, 0);
lean_dec(x_567);
x_568 = lean_box(0);
lean_ctor_set(x_564, 0, x_568);
return x_564;
}
else
{
lean_object* x_569; lean_object* x_570; lean_object* x_571; 
x_569 = lean_ctor_get(x_564, 1);
lean_inc(x_569);
lean_dec(x_564);
x_570 = lean_box(0);
x_571 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_571, 0, x_570);
lean_ctor_set(x_571, 1, x_569);
return x_571;
}
}
else
{
uint8_t x_572; 
x_572 = !lean_is_exclusive(x_564);
if (x_572 == 0)
{
lean_object* x_573; uint8_t x_574; 
x_573 = lean_ctor_get(x_564, 0);
lean_dec(x_573);
x_574 = !lean_is_exclusive(x_565);
if (x_574 == 0)
{
lean_object* x_575; lean_object* x_576; 
x_575 = lean_ctor_get(x_565, 0);
x_576 = lean_nat_add(x_575, x_552);
lean_dec(x_575);
lean_ctor_set(x_565, 0, x_576);
return x_564;
}
else
{
lean_object* x_577; lean_object* x_578; lean_object* x_579; 
x_577 = lean_ctor_get(x_565, 0);
lean_inc(x_577);
lean_dec(x_565);
x_578 = lean_nat_add(x_577, x_552);
lean_dec(x_577);
x_579 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_579, 0, x_578);
lean_ctor_set(x_564, 0, x_579);
return x_564;
}
}
else
{
lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; 
x_580 = lean_ctor_get(x_564, 1);
lean_inc(x_580);
lean_dec(x_564);
x_581 = lean_ctor_get(x_565, 0);
lean_inc(x_581);
if (lean_is_exclusive(x_565)) {
 lean_ctor_release(x_565, 0);
 x_582 = x_565;
} else {
 lean_dec_ref(x_565);
 x_582 = lean_box(0);
}
x_583 = lean_nat_add(x_581, x_552);
lean_dec(x_581);
if (lean_is_scalar(x_582)) {
 x_584 = lean_alloc_ctor(1, 1, 0);
} else {
 x_584 = x_582;
}
lean_ctor_set(x_584, 0, x_583);
x_585 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_585, 0, x_584);
lean_ctor_set(x_585, 1, x_580);
return x_585;
}
}
}
else
{
uint8_t x_586; 
x_586 = !lean_is_exclusive(x_564);
if (x_586 == 0)
{
return x_564;
}
else
{
lean_object* x_587; lean_object* x_588; lean_object* x_589; 
x_587 = lean_ctor_get(x_564, 0);
x_588 = lean_ctor_get(x_564, 1);
lean_inc(x_588);
lean_inc(x_587);
lean_dec(x_564);
x_589 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_589, 0, x_587);
lean_ctor_set(x_589, 1, x_588);
return x_589;
}
}
}
}
block_44:
{
lean_object* x_31; uint8_t x_32; 
lean_dec(x_30);
x_31 = l_Lean_Meta_evalNat_visit___closed__3;
x_32 = lean_name_eq(x_27, x_31);
lean_dec(x_27);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_33 = lean_box(0);
x_34 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_34, 0, x_33);
lean_ctor_set(x_34, 1, x_6);
return x_34;
}
else
{
lean_object* x_35; uint8_t x_36; 
x_35 = lean_unsigned_to_nat(3u);
x_36 = lean_nat_dec_eq(x_29, x_35);
if (x_36 == 0)
{
lean_object* x_37; lean_object* x_38; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_37 = lean_box(0);
x_38 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_38, 0, x_37);
lean_ctor_set(x_38, 1, x_6);
return x_38;
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_39 = lean_unsigned_to_nat(1u);
x_40 = lean_nat_sub(x_29, x_39);
lean_dec(x_29);
x_41 = lean_nat_sub(x_40, x_39);
lean_dec(x_40);
x_42 = l_Lean_Expr_getRevArg_x21(x_1, x_41);
lean_dec(x_1);
x_43 = l_Lean_Meta_evalNat(x_42, x_2, x_3, x_4, x_5, x_6);
return x_43;
}
}
}
block_155:
{
lean_object* x_46; uint8_t x_47; 
lean_dec(x_45);
x_46 = l_myMacro____x40_Init_Notation___hyg_2964____closed__7;
x_47 = lean_name_eq(x_27, x_46);
if (x_47 == 0)
{
lean_object* x_48; uint8_t x_49; 
x_48 = l_myMacro____x40_Init_Notation___hyg_3223____closed__7;
x_49 = lean_name_eq(x_27, x_48);
if (x_49 == 0)
{
lean_object* x_50; 
x_50 = lean_box(0);
x_30 = x_50;
goto block_44;
}
else
{
lean_object* x_51; uint8_t x_52; 
x_51 = lean_unsigned_to_nat(6u);
x_52 = lean_nat_dec_eq(x_29, x_51);
if (x_52 == 0)
{
lean_object* x_53; 
x_53 = lean_box(0);
x_30 = x_53;
goto block_44;
}
else
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
lean_dec(x_27);
x_54 = lean_unsigned_to_nat(4u);
x_55 = lean_nat_sub(x_29, x_54);
x_56 = lean_unsigned_to_nat(1u);
x_57 = lean_nat_sub(x_55, x_56);
lean_dec(x_55);
x_58 = l_Lean_Expr_getRevArg_x21(x_1, x_57);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_59 = l_Lean_Meta_evalNat(x_58, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_59) == 0)
{
lean_object* x_60; 
x_60 = lean_ctor_get(x_59, 0);
lean_inc(x_60);
if (lean_obj_tag(x_60) == 0)
{
uint8_t x_61; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_61 = !lean_is_exclusive(x_59);
if (x_61 == 0)
{
lean_object* x_62; lean_object* x_63; 
x_62 = lean_ctor_get(x_59, 0);
lean_dec(x_62);
x_63 = lean_box(0);
lean_ctor_set(x_59, 0, x_63);
return x_59;
}
else
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_64 = lean_ctor_get(x_59, 1);
lean_inc(x_64);
lean_dec(x_59);
x_65 = lean_box(0);
x_66 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_66, 0, x_65);
lean_ctor_set(x_66, 1, x_64);
return x_66;
}
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; 
x_67 = lean_ctor_get(x_59, 1);
lean_inc(x_67);
lean_dec(x_59);
x_68 = lean_ctor_get(x_60, 0);
lean_inc(x_68);
lean_dec(x_60);
x_69 = lean_unsigned_to_nat(5u);
x_70 = lean_nat_sub(x_29, x_69);
lean_dec(x_29);
x_71 = lean_nat_sub(x_70, x_56);
lean_dec(x_70);
x_72 = l_Lean_Expr_getRevArg_x21(x_1, x_71);
lean_dec(x_1);
x_73 = l_Lean_Meta_evalNat(x_72, x_2, x_3, x_4, x_5, x_67);
if (lean_obj_tag(x_73) == 0)
{
lean_object* x_74; 
x_74 = lean_ctor_get(x_73, 0);
lean_inc(x_74);
if (lean_obj_tag(x_74) == 0)
{
uint8_t x_75; 
lean_dec(x_68);
x_75 = !lean_is_exclusive(x_73);
if (x_75 == 0)
{
lean_object* x_76; lean_object* x_77; 
x_76 = lean_ctor_get(x_73, 0);
lean_dec(x_76);
x_77 = lean_box(0);
lean_ctor_set(x_73, 0, x_77);
return x_73;
}
else
{
lean_object* x_78; lean_object* x_79; lean_object* x_80; 
x_78 = lean_ctor_get(x_73, 1);
lean_inc(x_78);
lean_dec(x_73);
x_79 = lean_box(0);
x_80 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_80, 0, x_79);
lean_ctor_set(x_80, 1, x_78);
return x_80;
}
}
else
{
uint8_t x_81; 
x_81 = !lean_is_exclusive(x_73);
if (x_81 == 0)
{
lean_object* x_82; uint8_t x_83; 
x_82 = lean_ctor_get(x_73, 0);
lean_dec(x_82);
x_83 = !lean_is_exclusive(x_74);
if (x_83 == 0)
{
lean_object* x_84; lean_object* x_85; 
x_84 = lean_ctor_get(x_74, 0);
x_85 = lean_nat_mul(x_68, x_84);
lean_dec(x_84);
lean_dec(x_68);
lean_ctor_set(x_74, 0, x_85);
return x_73;
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; 
x_86 = lean_ctor_get(x_74, 0);
lean_inc(x_86);
lean_dec(x_74);
x_87 = lean_nat_mul(x_68, x_86);
lean_dec(x_86);
lean_dec(x_68);
x_88 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_88, 0, x_87);
lean_ctor_set(x_73, 0, x_88);
return x_73;
}
}
else
{
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_89 = lean_ctor_get(x_73, 1);
lean_inc(x_89);
lean_dec(x_73);
x_90 = lean_ctor_get(x_74, 0);
lean_inc(x_90);
if (lean_is_exclusive(x_74)) {
 lean_ctor_release(x_74, 0);
 x_91 = x_74;
} else {
 lean_dec_ref(x_74);
 x_91 = lean_box(0);
}
x_92 = lean_nat_mul(x_68, x_90);
lean_dec(x_90);
lean_dec(x_68);
if (lean_is_scalar(x_91)) {
 x_93 = lean_alloc_ctor(1, 1, 0);
} else {
 x_93 = x_91;
}
lean_ctor_set(x_93, 0, x_92);
x_94 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_94, 0, x_93);
lean_ctor_set(x_94, 1, x_89);
return x_94;
}
}
}
else
{
uint8_t x_95; 
lean_dec(x_68);
x_95 = !lean_is_exclusive(x_73);
if (x_95 == 0)
{
return x_73;
}
else
{
lean_object* x_96; lean_object* x_97; lean_object* x_98; 
x_96 = lean_ctor_get(x_73, 0);
x_97 = lean_ctor_get(x_73, 1);
lean_inc(x_97);
lean_inc(x_96);
lean_dec(x_73);
x_98 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_98, 0, x_96);
lean_ctor_set(x_98, 1, x_97);
return x_98;
}
}
}
}
else
{
uint8_t x_99; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_99 = !lean_is_exclusive(x_59);
if (x_99 == 0)
{
return x_59;
}
else
{
lean_object* x_100; lean_object* x_101; lean_object* x_102; 
x_100 = lean_ctor_get(x_59, 0);
x_101 = lean_ctor_get(x_59, 1);
lean_inc(x_101);
lean_inc(x_100);
lean_dec(x_59);
x_102 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_102, 0, x_100);
lean_ctor_set(x_102, 1, x_101);
return x_102;
}
}
}
}
}
else
{
lean_object* x_103; uint8_t x_104; 
x_103 = lean_unsigned_to_nat(6u);
x_104 = lean_nat_dec_eq(x_29, x_103);
if (x_104 == 0)
{
lean_object* x_105; 
x_105 = lean_box(0);
x_30 = x_105;
goto block_44;
}
else
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; 
lean_dec(x_27);
x_106 = lean_unsigned_to_nat(4u);
x_107 = lean_nat_sub(x_29, x_106);
x_108 = lean_unsigned_to_nat(1u);
x_109 = lean_nat_sub(x_107, x_108);
lean_dec(x_107);
x_110 = l_Lean_Expr_getRevArg_x21(x_1, x_109);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_111 = l_Lean_Meta_evalNat(x_110, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_111) == 0)
{
lean_object* x_112; 
x_112 = lean_ctor_get(x_111, 0);
lean_inc(x_112);
if (lean_obj_tag(x_112) == 0)
{
uint8_t x_113; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_113 = !lean_is_exclusive(x_111);
if (x_113 == 0)
{
lean_object* x_114; lean_object* x_115; 
x_114 = lean_ctor_get(x_111, 0);
lean_dec(x_114);
x_115 = lean_box(0);
lean_ctor_set(x_111, 0, x_115);
return x_111;
}
else
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; 
x_116 = lean_ctor_get(x_111, 1);
lean_inc(x_116);
lean_dec(x_111);
x_117 = lean_box(0);
x_118 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_118, 0, x_117);
lean_ctor_set(x_118, 1, x_116);
return x_118;
}
}
else
{
lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; 
x_119 = lean_ctor_get(x_111, 1);
lean_inc(x_119);
lean_dec(x_111);
x_120 = lean_ctor_get(x_112, 0);
lean_inc(x_120);
lean_dec(x_112);
x_121 = lean_unsigned_to_nat(5u);
x_122 = lean_nat_sub(x_29, x_121);
lean_dec(x_29);
x_123 = lean_nat_sub(x_122, x_108);
lean_dec(x_122);
x_124 = l_Lean_Expr_getRevArg_x21(x_1, x_123);
lean_dec(x_1);
x_125 = l_Lean_Meta_evalNat(x_124, x_2, x_3, x_4, x_5, x_119);
if (lean_obj_tag(x_125) == 0)
{
lean_object* x_126; 
x_126 = lean_ctor_get(x_125, 0);
lean_inc(x_126);
if (lean_obj_tag(x_126) == 0)
{
uint8_t x_127; 
lean_dec(x_120);
x_127 = !lean_is_exclusive(x_125);
if (x_127 == 0)
{
lean_object* x_128; lean_object* x_129; 
x_128 = lean_ctor_get(x_125, 0);
lean_dec(x_128);
x_129 = lean_box(0);
lean_ctor_set(x_125, 0, x_129);
return x_125;
}
else
{
lean_object* x_130; lean_object* x_131; lean_object* x_132; 
x_130 = lean_ctor_get(x_125, 1);
lean_inc(x_130);
lean_dec(x_125);
x_131 = lean_box(0);
x_132 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_132, 0, x_131);
lean_ctor_set(x_132, 1, x_130);
return x_132;
}
}
else
{
uint8_t x_133; 
x_133 = !lean_is_exclusive(x_125);
if (x_133 == 0)
{
lean_object* x_134; uint8_t x_135; 
x_134 = lean_ctor_get(x_125, 0);
lean_dec(x_134);
x_135 = !lean_is_exclusive(x_126);
if (x_135 == 0)
{
lean_object* x_136; lean_object* x_137; 
x_136 = lean_ctor_get(x_126, 0);
x_137 = lean_nat_sub(x_120, x_136);
lean_dec(x_136);
lean_dec(x_120);
lean_ctor_set(x_126, 0, x_137);
return x_125;
}
else
{
lean_object* x_138; lean_object* x_139; lean_object* x_140; 
x_138 = lean_ctor_get(x_126, 0);
lean_inc(x_138);
lean_dec(x_126);
x_139 = lean_nat_sub(x_120, x_138);
lean_dec(x_138);
lean_dec(x_120);
x_140 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_140, 0, x_139);
lean_ctor_set(x_125, 0, x_140);
return x_125;
}
}
else
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; 
x_141 = lean_ctor_get(x_125, 1);
lean_inc(x_141);
lean_dec(x_125);
x_142 = lean_ctor_get(x_126, 0);
lean_inc(x_142);
if (lean_is_exclusive(x_126)) {
 lean_ctor_release(x_126, 0);
 x_143 = x_126;
} else {
 lean_dec_ref(x_126);
 x_143 = lean_box(0);
}
x_144 = lean_nat_sub(x_120, x_142);
lean_dec(x_142);
lean_dec(x_120);
if (lean_is_scalar(x_143)) {
 x_145 = lean_alloc_ctor(1, 1, 0);
} else {
 x_145 = x_143;
}
lean_ctor_set(x_145, 0, x_144);
x_146 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_146, 0, x_145);
lean_ctor_set(x_146, 1, x_141);
return x_146;
}
}
}
else
{
uint8_t x_147; 
lean_dec(x_120);
x_147 = !lean_is_exclusive(x_125);
if (x_147 == 0)
{
return x_125;
}
else
{
lean_object* x_148; lean_object* x_149; lean_object* x_150; 
x_148 = lean_ctor_get(x_125, 0);
x_149 = lean_ctor_get(x_125, 1);
lean_inc(x_149);
lean_inc(x_148);
lean_dec(x_125);
x_150 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_150, 0, x_148);
lean_ctor_set(x_150, 1, x_149);
return x_150;
}
}
}
}
else
{
uint8_t x_151; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_151 = !lean_is_exclusive(x_111);
if (x_151 == 0)
{
return x_111;
}
else
{
lean_object* x_152; lean_object* x_153; lean_object* x_154; 
x_152 = lean_ctor_get(x_111, 0);
x_153 = lean_ctor_get(x_111, 1);
lean_inc(x_153);
lean_inc(x_152);
lean_dec(x_111);
x_154 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_154, 0, x_152);
lean_ctor_set(x_154, 1, x_153);
return x_154;
}
}
}
}
}
block_206:
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; 
lean_dec(x_156);
x_157 = lean_unsigned_to_nat(3u);
x_158 = lean_nat_sub(x_29, x_157);
x_159 = lean_unsigned_to_nat(1u);
x_160 = lean_nat_sub(x_158, x_159);
lean_dec(x_158);
x_161 = l_Lean_Expr_getRevArg_x21(x_1, x_160);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_162 = l_Lean_Meta_evalNat(x_161, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_162) == 0)
{
lean_object* x_163; 
x_163 = lean_ctor_get(x_162, 0);
lean_inc(x_163);
if (lean_obj_tag(x_163) == 0)
{
uint8_t x_164; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_164 = !lean_is_exclusive(x_162);
if (x_164 == 0)
{
lean_object* x_165; lean_object* x_166; 
x_165 = lean_ctor_get(x_162, 0);
lean_dec(x_165);
x_166 = lean_box(0);
lean_ctor_set(x_162, 0, x_166);
return x_162;
}
else
{
lean_object* x_167; lean_object* x_168; lean_object* x_169; 
x_167 = lean_ctor_get(x_162, 1);
lean_inc(x_167);
lean_dec(x_162);
x_168 = lean_box(0);
x_169 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_167);
return x_169;
}
}
else
{
lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; 
x_170 = lean_ctor_get(x_162, 1);
lean_inc(x_170);
lean_dec(x_162);
x_171 = lean_ctor_get(x_163, 0);
lean_inc(x_171);
lean_dec(x_163);
x_172 = lean_unsigned_to_nat(5u);
x_173 = lean_nat_sub(x_29, x_172);
lean_dec(x_29);
x_174 = lean_nat_sub(x_173, x_159);
lean_dec(x_173);
x_175 = l_Lean_Expr_getRevArg_x21(x_1, x_174);
lean_dec(x_1);
x_176 = l_Lean_Meta_evalNat(x_175, x_2, x_3, x_4, x_5, x_170);
if (lean_obj_tag(x_176) == 0)
{
lean_object* x_177; 
x_177 = lean_ctor_get(x_176, 0);
lean_inc(x_177);
if (lean_obj_tag(x_177) == 0)
{
uint8_t x_178; 
lean_dec(x_171);
x_178 = !lean_is_exclusive(x_176);
if (x_178 == 0)
{
lean_object* x_179; lean_object* x_180; 
x_179 = lean_ctor_get(x_176, 0);
lean_dec(x_179);
x_180 = lean_box(0);
lean_ctor_set(x_176, 0, x_180);
return x_176;
}
else
{
lean_object* x_181; lean_object* x_182; lean_object* x_183; 
x_181 = lean_ctor_get(x_176, 1);
lean_inc(x_181);
lean_dec(x_176);
x_182 = lean_box(0);
x_183 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_183, 0, x_182);
lean_ctor_set(x_183, 1, x_181);
return x_183;
}
}
else
{
uint8_t x_184; 
x_184 = !lean_is_exclusive(x_176);
if (x_184 == 0)
{
lean_object* x_185; uint8_t x_186; 
x_185 = lean_ctor_get(x_176, 0);
lean_dec(x_185);
x_186 = !lean_is_exclusive(x_177);
if (x_186 == 0)
{
lean_object* x_187; lean_object* x_188; 
x_187 = lean_ctor_get(x_177, 0);
x_188 = lean_nat_add(x_171, x_187);
lean_dec(x_187);
lean_dec(x_171);
lean_ctor_set(x_177, 0, x_188);
return x_176;
}
else
{
lean_object* x_189; lean_object* x_190; lean_object* x_191; 
x_189 = lean_ctor_get(x_177, 0);
lean_inc(x_189);
lean_dec(x_177);
x_190 = lean_nat_add(x_171, x_189);
lean_dec(x_189);
lean_dec(x_171);
x_191 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_191, 0, x_190);
lean_ctor_set(x_176, 0, x_191);
return x_176;
}
}
else
{
lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; 
x_192 = lean_ctor_get(x_176, 1);
lean_inc(x_192);
lean_dec(x_176);
x_193 = lean_ctor_get(x_177, 0);
lean_inc(x_193);
if (lean_is_exclusive(x_177)) {
 lean_ctor_release(x_177, 0);
 x_194 = x_177;
} else {
 lean_dec_ref(x_177);
 x_194 = lean_box(0);
}
x_195 = lean_nat_add(x_171, x_193);
lean_dec(x_193);
lean_dec(x_171);
if (lean_is_scalar(x_194)) {
 x_196 = lean_alloc_ctor(1, 1, 0);
} else {
 x_196 = x_194;
}
lean_ctor_set(x_196, 0, x_195);
x_197 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_197, 0, x_196);
lean_ctor_set(x_197, 1, x_192);
return x_197;
}
}
}
else
{
uint8_t x_198; 
lean_dec(x_171);
x_198 = !lean_is_exclusive(x_176);
if (x_198 == 0)
{
return x_176;
}
else
{
lean_object* x_199; lean_object* x_200; lean_object* x_201; 
x_199 = lean_ctor_get(x_176, 0);
x_200 = lean_ctor_get(x_176, 1);
lean_inc(x_200);
lean_inc(x_199);
lean_dec(x_176);
x_201 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_201, 0, x_199);
lean_ctor_set(x_201, 1, x_200);
return x_201;
}
}
}
}
else
{
uint8_t x_202; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_202 = !lean_is_exclusive(x_162);
if (x_202 == 0)
{
return x_162;
}
else
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; 
x_203 = lean_ctor_get(x_162, 0);
x_204 = lean_ctor_get(x_162, 1);
lean_inc(x_204);
lean_inc(x_203);
lean_dec(x_162);
x_205 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_205, 0, x_203);
lean_ctor_set(x_205, 1, x_204);
return x_205;
}
}
}
block_275:
{
lean_object* x_208; uint8_t x_209; 
lean_dec(x_207);
x_208 = l_Lean_Meta_evalNat_visit___closed__7;
x_209 = lean_name_eq(x_27, x_208);
if (x_209 == 0)
{
lean_object* x_210; uint8_t x_211; 
x_210 = l_myMacro____x40_Init_Notation___hyg_2705____closed__7;
x_211 = lean_name_eq(x_27, x_210);
if (x_211 == 0)
{
lean_object* x_212; 
x_212 = lean_box(0);
x_45 = x_212;
goto block_155;
}
else
{
lean_object* x_213; uint8_t x_214; 
x_213 = lean_unsigned_to_nat(6u);
x_214 = lean_nat_dec_eq(x_29, x_213);
if (x_214 == 0)
{
lean_object* x_215; 
x_215 = lean_box(0);
x_45 = x_215;
goto block_155;
}
else
{
lean_object* x_216; 
lean_dec(x_27);
x_216 = lean_box(0);
x_156 = x_216;
goto block_206;
}
}
}
else
{
lean_object* x_217; uint8_t x_218; 
x_217 = lean_unsigned_to_nat(4u);
x_218 = lean_nat_dec_eq(x_29, x_217);
if (x_218 == 0)
{
lean_object* x_219; uint8_t x_220; 
x_219 = l_myMacro____x40_Init_Notation___hyg_2705____closed__7;
x_220 = lean_name_eq(x_27, x_219);
if (x_220 == 0)
{
lean_object* x_221; 
x_221 = lean_box(0);
x_45 = x_221;
goto block_155;
}
else
{
lean_object* x_222; uint8_t x_223; 
x_222 = lean_unsigned_to_nat(6u);
x_223 = lean_nat_dec_eq(x_29, x_222);
if (x_223 == 0)
{
lean_object* x_224; 
x_224 = lean_box(0);
x_45 = x_224;
goto block_155;
}
else
{
lean_object* x_225; 
lean_dec(x_27);
x_225 = lean_box(0);
x_156 = x_225;
goto block_206;
}
}
}
else
{
lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; 
lean_dec(x_27);
x_226 = lean_unsigned_to_nat(2u);
x_227 = lean_nat_sub(x_29, x_226);
x_228 = lean_unsigned_to_nat(1u);
x_229 = lean_nat_sub(x_227, x_228);
lean_dec(x_227);
x_230 = l_Lean_Expr_getRevArg_x21(x_1, x_229);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_231 = l_Lean_Meta_evalNat(x_230, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_231) == 0)
{
lean_object* x_232; 
x_232 = lean_ctor_get(x_231, 0);
lean_inc(x_232);
if (lean_obj_tag(x_232) == 0)
{
uint8_t x_233; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_233 = !lean_is_exclusive(x_231);
if (x_233 == 0)
{
lean_object* x_234; lean_object* x_235; 
x_234 = lean_ctor_get(x_231, 0);
lean_dec(x_234);
x_235 = lean_box(0);
lean_ctor_set(x_231, 0, x_235);
return x_231;
}
else
{
lean_object* x_236; lean_object* x_237; lean_object* x_238; 
x_236 = lean_ctor_get(x_231, 1);
lean_inc(x_236);
lean_dec(x_231);
x_237 = lean_box(0);
x_238 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_238, 0, x_237);
lean_ctor_set(x_238, 1, x_236);
return x_238;
}
}
else
{
lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; 
x_239 = lean_ctor_get(x_231, 1);
lean_inc(x_239);
lean_dec(x_231);
x_240 = lean_ctor_get(x_232, 0);
lean_inc(x_240);
lean_dec(x_232);
x_241 = lean_unsigned_to_nat(3u);
x_242 = lean_nat_sub(x_29, x_241);
lean_dec(x_29);
x_243 = lean_nat_sub(x_242, x_228);
lean_dec(x_242);
x_244 = l_Lean_Expr_getRevArg_x21(x_1, x_243);
lean_dec(x_1);
x_245 = l_Lean_Meta_evalNat(x_244, x_2, x_3, x_4, x_5, x_239);
if (lean_obj_tag(x_245) == 0)
{
lean_object* x_246; 
x_246 = lean_ctor_get(x_245, 0);
lean_inc(x_246);
if (lean_obj_tag(x_246) == 0)
{
uint8_t x_247; 
lean_dec(x_240);
x_247 = !lean_is_exclusive(x_245);
if (x_247 == 0)
{
lean_object* x_248; lean_object* x_249; 
x_248 = lean_ctor_get(x_245, 0);
lean_dec(x_248);
x_249 = lean_box(0);
lean_ctor_set(x_245, 0, x_249);
return x_245;
}
else
{
lean_object* x_250; lean_object* x_251; lean_object* x_252; 
x_250 = lean_ctor_get(x_245, 1);
lean_inc(x_250);
lean_dec(x_245);
x_251 = lean_box(0);
x_252 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_252, 0, x_251);
lean_ctor_set(x_252, 1, x_250);
return x_252;
}
}
else
{
uint8_t x_253; 
x_253 = !lean_is_exclusive(x_245);
if (x_253 == 0)
{
lean_object* x_254; uint8_t x_255; 
x_254 = lean_ctor_get(x_245, 0);
lean_dec(x_254);
x_255 = !lean_is_exclusive(x_246);
if (x_255 == 0)
{
lean_object* x_256; lean_object* x_257; 
x_256 = lean_ctor_get(x_246, 0);
x_257 = lean_nat_mul(x_240, x_256);
lean_dec(x_256);
lean_dec(x_240);
lean_ctor_set(x_246, 0, x_257);
return x_245;
}
else
{
lean_object* x_258; lean_object* x_259; lean_object* x_260; 
x_258 = lean_ctor_get(x_246, 0);
lean_inc(x_258);
lean_dec(x_246);
x_259 = lean_nat_mul(x_240, x_258);
lean_dec(x_258);
lean_dec(x_240);
x_260 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_260, 0, x_259);
lean_ctor_set(x_245, 0, x_260);
return x_245;
}
}
else
{
lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; 
x_261 = lean_ctor_get(x_245, 1);
lean_inc(x_261);
lean_dec(x_245);
x_262 = lean_ctor_get(x_246, 0);
lean_inc(x_262);
if (lean_is_exclusive(x_246)) {
 lean_ctor_release(x_246, 0);
 x_263 = x_246;
} else {
 lean_dec_ref(x_246);
 x_263 = lean_box(0);
}
x_264 = lean_nat_mul(x_240, x_262);
lean_dec(x_262);
lean_dec(x_240);
if (lean_is_scalar(x_263)) {
 x_265 = lean_alloc_ctor(1, 1, 0);
} else {
 x_265 = x_263;
}
lean_ctor_set(x_265, 0, x_264);
x_266 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_266, 0, x_265);
lean_ctor_set(x_266, 1, x_261);
return x_266;
}
}
}
else
{
uint8_t x_267; 
lean_dec(x_240);
x_267 = !lean_is_exclusive(x_245);
if (x_267 == 0)
{
return x_245;
}
else
{
lean_object* x_268; lean_object* x_269; lean_object* x_270; 
x_268 = lean_ctor_get(x_245, 0);
x_269 = lean_ctor_get(x_245, 1);
lean_inc(x_269);
lean_inc(x_268);
lean_dec(x_245);
x_270 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_270, 0, x_268);
lean_ctor_set(x_270, 1, x_269);
return x_270;
}
}
}
}
else
{
uint8_t x_271; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_271 = !lean_is_exclusive(x_231);
if (x_271 == 0)
{
return x_231;
}
else
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; 
x_272 = lean_ctor_get(x_231, 0);
x_273 = lean_ctor_get(x_231, 1);
lean_inc(x_273);
lean_inc(x_272);
lean_dec(x_231);
x_274 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_274, 0, x_272);
lean_ctor_set(x_274, 1, x_273);
return x_274;
}
}
}
}
}
block_386:
{
lean_object* x_277; uint8_t x_278; 
lean_dec(x_276);
x_277 = l_Lean_Meta_evalNat_visit___closed__11;
x_278 = lean_name_eq(x_27, x_277);
if (x_278 == 0)
{
lean_object* x_279; uint8_t x_280; 
x_279 = l_Lean_Meta_evalNat_visit___closed__15;
x_280 = lean_name_eq(x_27, x_279);
if (x_280 == 0)
{
lean_object* x_281; 
x_281 = lean_box(0);
x_207 = x_281;
goto block_275;
}
else
{
lean_object* x_282; uint8_t x_283; 
x_282 = lean_unsigned_to_nat(4u);
x_283 = lean_nat_dec_eq(x_29, x_282);
if (x_283 == 0)
{
lean_object* x_284; 
x_284 = lean_box(0);
x_207 = x_284;
goto block_275;
}
else
{
lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
lean_dec(x_27);
x_285 = lean_unsigned_to_nat(2u);
x_286 = lean_nat_sub(x_29, x_285);
x_287 = lean_unsigned_to_nat(1u);
x_288 = lean_nat_sub(x_286, x_287);
lean_dec(x_286);
x_289 = l_Lean_Expr_getRevArg_x21(x_1, x_288);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_290 = l_Lean_Meta_evalNat(x_289, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_290) == 0)
{
lean_object* x_291; 
x_291 = lean_ctor_get(x_290, 0);
lean_inc(x_291);
if (lean_obj_tag(x_291) == 0)
{
uint8_t x_292; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_292 = !lean_is_exclusive(x_290);
if (x_292 == 0)
{
lean_object* x_293; lean_object* x_294; 
x_293 = lean_ctor_get(x_290, 0);
lean_dec(x_293);
x_294 = lean_box(0);
lean_ctor_set(x_290, 0, x_294);
return x_290;
}
else
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; 
x_295 = lean_ctor_get(x_290, 1);
lean_inc(x_295);
lean_dec(x_290);
x_296 = lean_box(0);
x_297 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_297, 0, x_296);
lean_ctor_set(x_297, 1, x_295);
return x_297;
}
}
else
{
lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; 
x_298 = lean_ctor_get(x_290, 1);
lean_inc(x_298);
lean_dec(x_290);
x_299 = lean_ctor_get(x_291, 0);
lean_inc(x_299);
lean_dec(x_291);
x_300 = lean_unsigned_to_nat(3u);
x_301 = lean_nat_sub(x_29, x_300);
lean_dec(x_29);
x_302 = lean_nat_sub(x_301, x_287);
lean_dec(x_301);
x_303 = l_Lean_Expr_getRevArg_x21(x_1, x_302);
lean_dec(x_1);
x_304 = l_Lean_Meta_evalNat(x_303, x_2, x_3, x_4, x_5, x_298);
if (lean_obj_tag(x_304) == 0)
{
lean_object* x_305; 
x_305 = lean_ctor_get(x_304, 0);
lean_inc(x_305);
if (lean_obj_tag(x_305) == 0)
{
uint8_t x_306; 
lean_dec(x_299);
x_306 = !lean_is_exclusive(x_304);
if (x_306 == 0)
{
lean_object* x_307; lean_object* x_308; 
x_307 = lean_ctor_get(x_304, 0);
lean_dec(x_307);
x_308 = lean_box(0);
lean_ctor_set(x_304, 0, x_308);
return x_304;
}
else
{
lean_object* x_309; lean_object* x_310; lean_object* x_311; 
x_309 = lean_ctor_get(x_304, 1);
lean_inc(x_309);
lean_dec(x_304);
x_310 = lean_box(0);
x_311 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_311, 0, x_310);
lean_ctor_set(x_311, 1, x_309);
return x_311;
}
}
else
{
uint8_t x_312; 
x_312 = !lean_is_exclusive(x_304);
if (x_312 == 0)
{
lean_object* x_313; uint8_t x_314; 
x_313 = lean_ctor_get(x_304, 0);
lean_dec(x_313);
x_314 = !lean_is_exclusive(x_305);
if (x_314 == 0)
{
lean_object* x_315; lean_object* x_316; 
x_315 = lean_ctor_get(x_305, 0);
x_316 = lean_nat_sub(x_299, x_315);
lean_dec(x_315);
lean_dec(x_299);
lean_ctor_set(x_305, 0, x_316);
return x_304;
}
else
{
lean_object* x_317; lean_object* x_318; lean_object* x_319; 
x_317 = lean_ctor_get(x_305, 0);
lean_inc(x_317);
lean_dec(x_305);
x_318 = lean_nat_sub(x_299, x_317);
lean_dec(x_317);
lean_dec(x_299);
x_319 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_319, 0, x_318);
lean_ctor_set(x_304, 0, x_319);
return x_304;
}
}
else
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; 
x_320 = lean_ctor_get(x_304, 1);
lean_inc(x_320);
lean_dec(x_304);
x_321 = lean_ctor_get(x_305, 0);
lean_inc(x_321);
if (lean_is_exclusive(x_305)) {
 lean_ctor_release(x_305, 0);
 x_322 = x_305;
} else {
 lean_dec_ref(x_305);
 x_322 = lean_box(0);
}
x_323 = lean_nat_sub(x_299, x_321);
lean_dec(x_321);
lean_dec(x_299);
if (lean_is_scalar(x_322)) {
 x_324 = lean_alloc_ctor(1, 1, 0);
} else {
 x_324 = x_322;
}
lean_ctor_set(x_324, 0, x_323);
x_325 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_325, 0, x_324);
lean_ctor_set(x_325, 1, x_320);
return x_325;
}
}
}
else
{
uint8_t x_326; 
lean_dec(x_299);
x_326 = !lean_is_exclusive(x_304);
if (x_326 == 0)
{
return x_304;
}
else
{
lean_object* x_327; lean_object* x_328; lean_object* x_329; 
x_327 = lean_ctor_get(x_304, 0);
x_328 = lean_ctor_get(x_304, 1);
lean_inc(x_328);
lean_inc(x_327);
lean_dec(x_304);
x_329 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_329, 0, x_327);
lean_ctor_set(x_329, 1, x_328);
return x_329;
}
}
}
}
else
{
uint8_t x_330; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_330 = !lean_is_exclusive(x_290);
if (x_330 == 0)
{
return x_290;
}
else
{
lean_object* x_331; lean_object* x_332; lean_object* x_333; 
x_331 = lean_ctor_get(x_290, 0);
x_332 = lean_ctor_get(x_290, 1);
lean_inc(x_332);
lean_inc(x_331);
lean_dec(x_290);
x_333 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_333, 0, x_331);
lean_ctor_set(x_333, 1, x_332);
return x_333;
}
}
}
}
}
else
{
lean_object* x_334; uint8_t x_335; 
x_334 = lean_unsigned_to_nat(4u);
x_335 = lean_nat_dec_eq(x_29, x_334);
if (x_335 == 0)
{
lean_object* x_336; 
x_336 = lean_box(0);
x_207 = x_336;
goto block_275;
}
else
{
lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; 
lean_dec(x_27);
x_337 = lean_unsigned_to_nat(2u);
x_338 = lean_nat_sub(x_29, x_337);
x_339 = lean_unsigned_to_nat(1u);
x_340 = lean_nat_sub(x_338, x_339);
lean_dec(x_338);
x_341 = l_Lean_Expr_getRevArg_x21(x_1, x_340);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_342 = l_Lean_Meta_evalNat(x_341, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_342) == 0)
{
lean_object* x_343; 
x_343 = lean_ctor_get(x_342, 0);
lean_inc(x_343);
if (lean_obj_tag(x_343) == 0)
{
uint8_t x_344; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_344 = !lean_is_exclusive(x_342);
if (x_344 == 0)
{
lean_object* x_345; lean_object* x_346; 
x_345 = lean_ctor_get(x_342, 0);
lean_dec(x_345);
x_346 = lean_box(0);
lean_ctor_set(x_342, 0, x_346);
return x_342;
}
else
{
lean_object* x_347; lean_object* x_348; lean_object* x_349; 
x_347 = lean_ctor_get(x_342, 1);
lean_inc(x_347);
lean_dec(x_342);
x_348 = lean_box(0);
x_349 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_349, 0, x_348);
lean_ctor_set(x_349, 1, x_347);
return x_349;
}
}
else
{
lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; 
x_350 = lean_ctor_get(x_342, 1);
lean_inc(x_350);
lean_dec(x_342);
x_351 = lean_ctor_get(x_343, 0);
lean_inc(x_351);
lean_dec(x_343);
x_352 = lean_unsigned_to_nat(3u);
x_353 = lean_nat_sub(x_29, x_352);
lean_dec(x_29);
x_354 = lean_nat_sub(x_353, x_339);
lean_dec(x_353);
x_355 = l_Lean_Expr_getRevArg_x21(x_1, x_354);
lean_dec(x_1);
x_356 = l_Lean_Meta_evalNat(x_355, x_2, x_3, x_4, x_5, x_350);
if (lean_obj_tag(x_356) == 0)
{
lean_object* x_357; 
x_357 = lean_ctor_get(x_356, 0);
lean_inc(x_357);
if (lean_obj_tag(x_357) == 0)
{
uint8_t x_358; 
lean_dec(x_351);
x_358 = !lean_is_exclusive(x_356);
if (x_358 == 0)
{
lean_object* x_359; lean_object* x_360; 
x_359 = lean_ctor_get(x_356, 0);
lean_dec(x_359);
x_360 = lean_box(0);
lean_ctor_set(x_356, 0, x_360);
return x_356;
}
else
{
lean_object* x_361; lean_object* x_362; lean_object* x_363; 
x_361 = lean_ctor_get(x_356, 1);
lean_inc(x_361);
lean_dec(x_356);
x_362 = lean_box(0);
x_363 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_363, 0, x_362);
lean_ctor_set(x_363, 1, x_361);
return x_363;
}
}
else
{
uint8_t x_364; 
x_364 = !lean_is_exclusive(x_356);
if (x_364 == 0)
{
lean_object* x_365; uint8_t x_366; 
x_365 = lean_ctor_get(x_356, 0);
lean_dec(x_365);
x_366 = !lean_is_exclusive(x_357);
if (x_366 == 0)
{
lean_object* x_367; lean_object* x_368; 
x_367 = lean_ctor_get(x_357, 0);
x_368 = lean_nat_add(x_351, x_367);
lean_dec(x_367);
lean_dec(x_351);
lean_ctor_set(x_357, 0, x_368);
return x_356;
}
else
{
lean_object* x_369; lean_object* x_370; lean_object* x_371; 
x_369 = lean_ctor_get(x_357, 0);
lean_inc(x_369);
lean_dec(x_357);
x_370 = lean_nat_add(x_351, x_369);
lean_dec(x_369);
lean_dec(x_351);
x_371 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_371, 0, x_370);
lean_ctor_set(x_356, 0, x_371);
return x_356;
}
}
else
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; 
x_372 = lean_ctor_get(x_356, 1);
lean_inc(x_372);
lean_dec(x_356);
x_373 = lean_ctor_get(x_357, 0);
lean_inc(x_373);
if (lean_is_exclusive(x_357)) {
 lean_ctor_release(x_357, 0);
 x_374 = x_357;
} else {
 lean_dec_ref(x_357);
 x_374 = lean_box(0);
}
x_375 = lean_nat_add(x_351, x_373);
lean_dec(x_373);
lean_dec(x_351);
if (lean_is_scalar(x_374)) {
 x_376 = lean_alloc_ctor(1, 1, 0);
} else {
 x_376 = x_374;
}
lean_ctor_set(x_376, 0, x_375);
x_377 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_377, 0, x_376);
lean_ctor_set(x_377, 1, x_372);
return x_377;
}
}
}
else
{
uint8_t x_378; 
lean_dec(x_351);
x_378 = !lean_is_exclusive(x_356);
if (x_378 == 0)
{
return x_356;
}
else
{
lean_object* x_379; lean_object* x_380; lean_object* x_381; 
x_379 = lean_ctor_get(x_356, 0);
x_380 = lean_ctor_get(x_356, 1);
lean_inc(x_380);
lean_inc(x_379);
lean_dec(x_356);
x_381 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_381, 0, x_379);
lean_ctor_set(x_381, 1, x_380);
return x_381;
}
}
}
}
else
{
uint8_t x_382; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_382 = !lean_is_exclusive(x_342);
if (x_382 == 0)
{
return x_342;
}
else
{
lean_object* x_383; lean_object* x_384; lean_object* x_385; 
x_383 = lean_ctor_get(x_342, 0);
x_384 = lean_ctor_get(x_342, 1);
lean_inc(x_384);
lean_inc(x_383);
lean_dec(x_342);
x_385 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_385, 0, x_383);
lean_ctor_set(x_385, 1, x_384);
return x_385;
}
}
}
}
}
block_435:
{
lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; 
lean_dec(x_387);
x_388 = lean_nat_sub(x_29, x_28);
x_389 = lean_unsigned_to_nat(1u);
x_390 = lean_nat_sub(x_388, x_389);
lean_dec(x_388);
x_391 = l_Lean_Expr_getRevArg_x21(x_1, x_390);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_392 = l_Lean_Meta_evalNat(x_391, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_392) == 0)
{
lean_object* x_393; 
x_393 = lean_ctor_get(x_392, 0);
lean_inc(x_393);
if (lean_obj_tag(x_393) == 0)
{
uint8_t x_394; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_394 = !lean_is_exclusive(x_392);
if (x_394 == 0)
{
lean_object* x_395; lean_object* x_396; 
x_395 = lean_ctor_get(x_392, 0);
lean_dec(x_395);
x_396 = lean_box(0);
lean_ctor_set(x_392, 0, x_396);
return x_392;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_ctor_get(x_392, 1);
lean_inc(x_397);
lean_dec(x_392);
x_398 = lean_box(0);
x_399 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_399, 0, x_398);
lean_ctor_set(x_399, 1, x_397);
return x_399;
}
}
else
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; 
x_400 = lean_ctor_get(x_392, 1);
lean_inc(x_400);
lean_dec(x_392);
x_401 = lean_ctor_get(x_393, 0);
lean_inc(x_401);
lean_dec(x_393);
x_402 = lean_nat_sub(x_29, x_389);
lean_dec(x_29);
x_403 = lean_nat_sub(x_402, x_389);
lean_dec(x_402);
x_404 = l_Lean_Expr_getRevArg_x21(x_1, x_403);
lean_dec(x_1);
x_405 = l_Lean_Meta_evalNat(x_404, x_2, x_3, x_4, x_5, x_400);
if (lean_obj_tag(x_405) == 0)
{
lean_object* x_406; 
x_406 = lean_ctor_get(x_405, 0);
lean_inc(x_406);
if (lean_obj_tag(x_406) == 0)
{
uint8_t x_407; 
lean_dec(x_401);
x_407 = !lean_is_exclusive(x_405);
if (x_407 == 0)
{
lean_object* x_408; lean_object* x_409; 
x_408 = lean_ctor_get(x_405, 0);
lean_dec(x_408);
x_409 = lean_box(0);
lean_ctor_set(x_405, 0, x_409);
return x_405;
}
else
{
lean_object* x_410; lean_object* x_411; lean_object* x_412; 
x_410 = lean_ctor_get(x_405, 1);
lean_inc(x_410);
lean_dec(x_405);
x_411 = lean_box(0);
x_412 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_412, 0, x_411);
lean_ctor_set(x_412, 1, x_410);
return x_412;
}
}
else
{
uint8_t x_413; 
x_413 = !lean_is_exclusive(x_405);
if (x_413 == 0)
{
lean_object* x_414; uint8_t x_415; 
x_414 = lean_ctor_get(x_405, 0);
lean_dec(x_414);
x_415 = !lean_is_exclusive(x_406);
if (x_415 == 0)
{
lean_object* x_416; lean_object* x_417; 
x_416 = lean_ctor_get(x_406, 0);
x_417 = lean_nat_add(x_401, x_416);
lean_dec(x_416);
lean_dec(x_401);
lean_ctor_set(x_406, 0, x_417);
return x_405;
}
else
{
lean_object* x_418; lean_object* x_419; lean_object* x_420; 
x_418 = lean_ctor_get(x_406, 0);
lean_inc(x_418);
lean_dec(x_406);
x_419 = lean_nat_add(x_401, x_418);
lean_dec(x_418);
lean_dec(x_401);
x_420 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_420, 0, x_419);
lean_ctor_set(x_405, 0, x_420);
return x_405;
}
}
else
{
lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; 
x_421 = lean_ctor_get(x_405, 1);
lean_inc(x_421);
lean_dec(x_405);
x_422 = lean_ctor_get(x_406, 0);
lean_inc(x_422);
if (lean_is_exclusive(x_406)) {
 lean_ctor_release(x_406, 0);
 x_423 = x_406;
} else {
 lean_dec_ref(x_406);
 x_423 = lean_box(0);
}
x_424 = lean_nat_add(x_401, x_422);
lean_dec(x_422);
lean_dec(x_401);
if (lean_is_scalar(x_423)) {
 x_425 = lean_alloc_ctor(1, 1, 0);
} else {
 x_425 = x_423;
}
lean_ctor_set(x_425, 0, x_424);
x_426 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_426, 0, x_425);
lean_ctor_set(x_426, 1, x_421);
return x_426;
}
}
}
else
{
uint8_t x_427; 
lean_dec(x_401);
x_427 = !lean_is_exclusive(x_405);
if (x_427 == 0)
{
return x_405;
}
else
{
lean_object* x_428; lean_object* x_429; lean_object* x_430; 
x_428 = lean_ctor_get(x_405, 0);
x_429 = lean_ctor_get(x_405, 1);
lean_inc(x_429);
lean_inc(x_428);
lean_dec(x_405);
x_430 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_430, 0, x_428);
lean_ctor_set(x_430, 1, x_429);
return x_430;
}
}
}
}
else
{
uint8_t x_431; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_431 = !lean_is_exclusive(x_392);
if (x_431 == 0)
{
return x_392;
}
else
{
lean_object* x_432; lean_object* x_433; lean_object* x_434; 
x_432 = lean_ctor_get(x_392, 0);
x_433 = lean_ctor_get(x_392, 1);
lean_inc(x_433);
lean_inc(x_432);
lean_dec(x_392);
x_434 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_434, 0, x_432);
lean_ctor_set(x_434, 1, x_433);
return x_434;
}
}
}
block_542:
{
lean_object* x_437; uint8_t x_438; 
lean_dec(x_436);
x_437 = l_Lean_Meta_evalNat_visit___closed__16;
x_438 = lean_name_eq(x_27, x_437);
if (x_438 == 0)
{
lean_object* x_439; uint8_t x_440; 
x_439 = l_Lean_Meta_evalNat_visit___closed__17;
x_440 = lean_name_eq(x_27, x_439);
if (x_440 == 0)
{
lean_object* x_441; 
x_441 = lean_box(0);
x_276 = x_441;
goto block_386;
}
else
{
lean_object* x_442; uint8_t x_443; 
x_442 = lean_unsigned_to_nat(2u);
x_443 = lean_nat_dec_eq(x_29, x_442);
if (x_443 == 0)
{
lean_object* x_444; 
x_444 = lean_box(0);
x_276 = x_444;
goto block_386;
}
else
{
lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; 
lean_dec(x_27);
x_445 = lean_nat_sub(x_29, x_28);
x_446 = lean_unsigned_to_nat(1u);
x_447 = lean_nat_sub(x_445, x_446);
lean_dec(x_445);
x_448 = l_Lean_Expr_getRevArg_x21(x_1, x_447);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_449 = l_Lean_Meta_evalNat(x_448, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_449) == 0)
{
lean_object* x_450; 
x_450 = lean_ctor_get(x_449, 0);
lean_inc(x_450);
if (lean_obj_tag(x_450) == 0)
{
uint8_t x_451; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_451 = !lean_is_exclusive(x_449);
if (x_451 == 0)
{
lean_object* x_452; lean_object* x_453; 
x_452 = lean_ctor_get(x_449, 0);
lean_dec(x_452);
x_453 = lean_box(0);
lean_ctor_set(x_449, 0, x_453);
return x_449;
}
else
{
lean_object* x_454; lean_object* x_455; lean_object* x_456; 
x_454 = lean_ctor_get(x_449, 1);
lean_inc(x_454);
lean_dec(x_449);
x_455 = lean_box(0);
x_456 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_456, 0, x_455);
lean_ctor_set(x_456, 1, x_454);
return x_456;
}
}
else
{
lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; 
x_457 = lean_ctor_get(x_449, 1);
lean_inc(x_457);
lean_dec(x_449);
x_458 = lean_ctor_get(x_450, 0);
lean_inc(x_458);
lean_dec(x_450);
x_459 = lean_nat_sub(x_29, x_446);
lean_dec(x_29);
x_460 = lean_nat_sub(x_459, x_446);
lean_dec(x_459);
x_461 = l_Lean_Expr_getRevArg_x21(x_1, x_460);
lean_dec(x_1);
x_462 = l_Lean_Meta_evalNat(x_461, x_2, x_3, x_4, x_5, x_457);
if (lean_obj_tag(x_462) == 0)
{
lean_object* x_463; 
x_463 = lean_ctor_get(x_462, 0);
lean_inc(x_463);
if (lean_obj_tag(x_463) == 0)
{
uint8_t x_464; 
lean_dec(x_458);
x_464 = !lean_is_exclusive(x_462);
if (x_464 == 0)
{
lean_object* x_465; lean_object* x_466; 
x_465 = lean_ctor_get(x_462, 0);
lean_dec(x_465);
x_466 = lean_box(0);
lean_ctor_set(x_462, 0, x_466);
return x_462;
}
else
{
lean_object* x_467; lean_object* x_468; lean_object* x_469; 
x_467 = lean_ctor_get(x_462, 1);
lean_inc(x_467);
lean_dec(x_462);
x_468 = lean_box(0);
x_469 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_469, 0, x_468);
lean_ctor_set(x_469, 1, x_467);
return x_469;
}
}
else
{
uint8_t x_470; 
x_470 = !lean_is_exclusive(x_462);
if (x_470 == 0)
{
lean_object* x_471; uint8_t x_472; 
x_471 = lean_ctor_get(x_462, 0);
lean_dec(x_471);
x_472 = !lean_is_exclusive(x_463);
if (x_472 == 0)
{
lean_object* x_473; lean_object* x_474; 
x_473 = lean_ctor_get(x_463, 0);
x_474 = lean_nat_mul(x_458, x_473);
lean_dec(x_473);
lean_dec(x_458);
lean_ctor_set(x_463, 0, x_474);
return x_462;
}
else
{
lean_object* x_475; lean_object* x_476; lean_object* x_477; 
x_475 = lean_ctor_get(x_463, 0);
lean_inc(x_475);
lean_dec(x_463);
x_476 = lean_nat_mul(x_458, x_475);
lean_dec(x_475);
lean_dec(x_458);
x_477 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_477, 0, x_476);
lean_ctor_set(x_462, 0, x_477);
return x_462;
}
}
else
{
lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; 
x_478 = lean_ctor_get(x_462, 1);
lean_inc(x_478);
lean_dec(x_462);
x_479 = lean_ctor_get(x_463, 0);
lean_inc(x_479);
if (lean_is_exclusive(x_463)) {
 lean_ctor_release(x_463, 0);
 x_480 = x_463;
} else {
 lean_dec_ref(x_463);
 x_480 = lean_box(0);
}
x_481 = lean_nat_mul(x_458, x_479);
lean_dec(x_479);
lean_dec(x_458);
if (lean_is_scalar(x_480)) {
 x_482 = lean_alloc_ctor(1, 1, 0);
} else {
 x_482 = x_480;
}
lean_ctor_set(x_482, 0, x_481);
x_483 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_483, 0, x_482);
lean_ctor_set(x_483, 1, x_478);
return x_483;
}
}
}
else
{
uint8_t x_484; 
lean_dec(x_458);
x_484 = !lean_is_exclusive(x_462);
if (x_484 == 0)
{
return x_462;
}
else
{
lean_object* x_485; lean_object* x_486; lean_object* x_487; 
x_485 = lean_ctor_get(x_462, 0);
x_486 = lean_ctor_get(x_462, 1);
lean_inc(x_486);
lean_inc(x_485);
lean_dec(x_462);
x_487 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_487, 0, x_485);
lean_ctor_set(x_487, 1, x_486);
return x_487;
}
}
}
}
else
{
uint8_t x_488; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_488 = !lean_is_exclusive(x_449);
if (x_488 == 0)
{
return x_449;
}
else
{
lean_object* x_489; lean_object* x_490; lean_object* x_491; 
x_489 = lean_ctor_get(x_449, 0);
x_490 = lean_ctor_get(x_449, 1);
lean_inc(x_490);
lean_inc(x_489);
lean_dec(x_449);
x_491 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_491, 0, x_489);
lean_ctor_set(x_491, 1, x_490);
return x_491;
}
}
}
}
}
else
{
lean_object* x_492; uint8_t x_493; 
x_492 = lean_unsigned_to_nat(2u);
x_493 = lean_nat_dec_eq(x_29, x_492);
if (x_493 == 0)
{
lean_object* x_494; 
x_494 = lean_box(0);
x_276 = x_494;
goto block_386;
}
else
{
lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; 
lean_dec(x_27);
x_495 = lean_nat_sub(x_29, x_28);
x_496 = lean_unsigned_to_nat(1u);
x_497 = lean_nat_sub(x_495, x_496);
lean_dec(x_495);
x_498 = l_Lean_Expr_getRevArg_x21(x_1, x_497);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_499 = l_Lean_Meta_evalNat(x_498, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_499) == 0)
{
lean_object* x_500; 
x_500 = lean_ctor_get(x_499, 0);
lean_inc(x_500);
if (lean_obj_tag(x_500) == 0)
{
uint8_t x_501; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_501 = !lean_is_exclusive(x_499);
if (x_501 == 0)
{
lean_object* x_502; lean_object* x_503; 
x_502 = lean_ctor_get(x_499, 0);
lean_dec(x_502);
x_503 = lean_box(0);
lean_ctor_set(x_499, 0, x_503);
return x_499;
}
else
{
lean_object* x_504; lean_object* x_505; lean_object* x_506; 
x_504 = lean_ctor_get(x_499, 1);
lean_inc(x_504);
lean_dec(x_499);
x_505 = lean_box(0);
x_506 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_506, 0, x_505);
lean_ctor_set(x_506, 1, x_504);
return x_506;
}
}
else
{
lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; 
x_507 = lean_ctor_get(x_499, 1);
lean_inc(x_507);
lean_dec(x_499);
x_508 = lean_ctor_get(x_500, 0);
lean_inc(x_508);
lean_dec(x_500);
x_509 = lean_nat_sub(x_29, x_496);
lean_dec(x_29);
x_510 = lean_nat_sub(x_509, x_496);
lean_dec(x_509);
x_511 = l_Lean_Expr_getRevArg_x21(x_1, x_510);
lean_dec(x_1);
x_512 = l_Lean_Meta_evalNat(x_511, x_2, x_3, x_4, x_5, x_507);
if (lean_obj_tag(x_512) == 0)
{
lean_object* x_513; 
x_513 = lean_ctor_get(x_512, 0);
lean_inc(x_513);
if (lean_obj_tag(x_513) == 0)
{
uint8_t x_514; 
lean_dec(x_508);
x_514 = !lean_is_exclusive(x_512);
if (x_514 == 0)
{
lean_object* x_515; lean_object* x_516; 
x_515 = lean_ctor_get(x_512, 0);
lean_dec(x_515);
x_516 = lean_box(0);
lean_ctor_set(x_512, 0, x_516);
return x_512;
}
else
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; 
x_517 = lean_ctor_get(x_512, 1);
lean_inc(x_517);
lean_dec(x_512);
x_518 = lean_box(0);
x_519 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_519, 0, x_518);
lean_ctor_set(x_519, 1, x_517);
return x_519;
}
}
else
{
uint8_t x_520; 
x_520 = !lean_is_exclusive(x_512);
if (x_520 == 0)
{
lean_object* x_521; uint8_t x_522; 
x_521 = lean_ctor_get(x_512, 0);
lean_dec(x_521);
x_522 = !lean_is_exclusive(x_513);
if (x_522 == 0)
{
lean_object* x_523; lean_object* x_524; 
x_523 = lean_ctor_get(x_513, 0);
x_524 = lean_nat_sub(x_508, x_523);
lean_dec(x_523);
lean_dec(x_508);
lean_ctor_set(x_513, 0, x_524);
return x_512;
}
else
{
lean_object* x_525; lean_object* x_526; lean_object* x_527; 
x_525 = lean_ctor_get(x_513, 0);
lean_inc(x_525);
lean_dec(x_513);
x_526 = lean_nat_sub(x_508, x_525);
lean_dec(x_525);
lean_dec(x_508);
x_527 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_527, 0, x_526);
lean_ctor_set(x_512, 0, x_527);
return x_512;
}
}
else
{
lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; 
x_528 = lean_ctor_get(x_512, 1);
lean_inc(x_528);
lean_dec(x_512);
x_529 = lean_ctor_get(x_513, 0);
lean_inc(x_529);
if (lean_is_exclusive(x_513)) {
 lean_ctor_release(x_513, 0);
 x_530 = x_513;
} else {
 lean_dec_ref(x_513);
 x_530 = lean_box(0);
}
x_531 = lean_nat_sub(x_508, x_529);
lean_dec(x_529);
lean_dec(x_508);
if (lean_is_scalar(x_530)) {
 x_532 = lean_alloc_ctor(1, 1, 0);
} else {
 x_532 = x_530;
}
lean_ctor_set(x_532, 0, x_531);
x_533 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_528);
return x_533;
}
}
}
else
{
uint8_t x_534; 
lean_dec(x_508);
x_534 = !lean_is_exclusive(x_512);
if (x_534 == 0)
{
return x_512;
}
else
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; 
x_535 = lean_ctor_get(x_512, 0);
x_536 = lean_ctor_get(x_512, 1);
lean_inc(x_536);
lean_inc(x_535);
lean_dec(x_512);
x_537 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_537, 0, x_535);
lean_ctor_set(x_537, 1, x_536);
return x_537;
}
}
}
}
else
{
uint8_t x_538; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_538 = !lean_is_exclusive(x_499);
if (x_538 == 0)
{
return x_499;
}
else
{
lean_object* x_539; lean_object* x_540; lean_object* x_541; 
x_539 = lean_ctor_get(x_499, 0);
x_540 = lean_ctor_get(x_499, 1);
lean_inc(x_540);
lean_inc(x_539);
lean_dec(x_499);
x_541 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_541, 0, x_539);
lean_ctor_set(x_541, 1, x_540);
return x_541;
}
}
}
}
}
}
default: 
{
lean_object* x_590; lean_object* x_591; 
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_590 = lean_box(0);
x_591 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_591, 0, x_590);
lean_ctor_set(x_591, 1, x_6);
return x_591;
}
}
}
}
lean_object* l_Lean_Meta_evalNat(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 2:
{
lean_object* x_7; 
x_7 = l_Lean_Meta_evalNat_visit(x_1, x_2, x_3, x_4, x_5, x_6);
return x_7;
}
case 4:
{
lean_object* x_8; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_8 = lean_ctor_get(x_1, 0);
lean_inc(x_8);
lean_dec(x_1);
if (lean_obj_tag(x_8) == 1)
{
lean_object* x_9; 
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
if (lean_obj_tag(x_9) == 1)
{
lean_object* x_10; 
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_11 = lean_ctor_get(x_8, 1);
lean_inc(x_11);
lean_dec(x_8);
x_12 = lean_ctor_get(x_9, 1);
lean_inc(x_12);
lean_dec(x_9);
x_13 = l_Lean_Literal_type___closed__1;
x_14 = lean_string_dec_eq(x_12, x_13);
lean_dec(x_12);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; 
lean_dec(x_11);
x_15 = lean_box(0);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_6);
return x_16;
}
else
{
lean_object* x_17; uint8_t x_18; 
x_17 = l_Lean_Meta_evalNat_match__1___rarg___closed__1;
x_18 = lean_string_dec_eq(x_11, x_17);
lean_dec(x_11);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; 
x_19 = lean_box(0);
x_20 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_6);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; 
x_21 = l_Lean_Syntax_decodeNatLitVal_x3f___closed__1;
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_6);
return x_22;
}
}
}
else
{
lean_object* x_23; lean_object* x_24; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_23 = lean_box(0);
x_24 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_24, 0, x_23);
lean_ctor_set(x_24, 1, x_6);
return x_24;
}
}
else
{
lean_object* x_25; lean_object* x_26; 
lean_dec(x_9);
lean_dec(x_8);
x_25 = lean_box(0);
x_26 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_6);
return x_26;
}
}
else
{
lean_object* x_27; lean_object* x_28; 
lean_dec(x_8);
x_27 = lean_box(0);
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_28, 1, x_6);
return x_28;
}
}
case 5:
{
lean_object* x_29; 
x_29 = l_Lean_Meta_evalNat_visit(x_1, x_2, x_3, x_4, x_5, x_6);
return x_29;
}
case 9:
{
lean_object* x_30; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_30 = lean_ctor_get(x_1, 0);
lean_inc(x_30);
lean_dec(x_1);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
lean_dec(x_30);
x_32 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_32, 0, x_31);
x_33 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_33, 0, x_32);
lean_ctor_set(x_33, 1, x_6);
return x_33;
}
else
{
lean_object* x_34; lean_object* x_35; 
lean_dec(x_30);
x_34 = lean_box(0);
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_34);
lean_ctor_set(x_35, 1, x_6);
return x_35;
}
}
case 10:
{
lean_object* x_36; 
x_36 = lean_ctor_get(x_1, 1);
lean_inc(x_36);
lean_dec(x_1);
x_1 = x_36;
goto _start;
}
default: 
{
lean_object* x_38; lean_object* x_39; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_38 = lean_box(0);
x_39 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_39, 0, x_38);
lean_ctor_set(x_39, 1, x_6);
return x_39;
}
}
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__1___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_2(x_2, x_3, x_4);
return x_5;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__1___rarg), 2, 0);
return x_2;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__2___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_2(x_2, x_3, x_4);
return x_5;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__2___rarg), 2, 0);
return x_2;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__3___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_2(x_2, x_3, x_4);
return x_5;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__3___rarg), 2, 0);
return x_2;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__4___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_2(x_2, x_3, x_4);
return x_5;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__4(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__4___rarg), 2, 0);
return x_2;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 2:
{
lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; 
lean_dec(x_4);
lean_dec(x_3);
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
lean_dec(x_1);
x_7 = lean_box_uint64(x_6);
x_8 = lean_apply_2(x_2, x_5, x_7);
return x_8;
}
case 4:
{
lean_object* x_9; lean_object* x_10; uint64_t x_11; lean_object* x_12; lean_object* x_13; 
lean_dec(x_4);
lean_dec(x_2);
x_9 = lean_ctor_get(x_1, 0);
lean_inc(x_9);
x_10 = lean_ctor_get(x_1, 1);
lean_inc(x_10);
x_11 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
lean_dec(x_1);
x_12 = lean_box_uint64(x_11);
x_13 = lean_apply_3(x_3, x_9, x_10, x_12);
return x_13;
}
default: 
{
lean_object* x_14; 
lean_dec(x_3);
lean_dec(x_2);
x_14 = lean_apply_1(x_4, x_1);
return x_14;
}
}
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__5(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__5___rarg), 4, 0);
return x_2;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__6___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_1) == 5)
{
lean_object* x_5; lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
lean_dec(x_4);
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
x_8 = lean_box_uint64(x_7);
x_9 = lean_box(x_2);
x_10 = lean_apply_5(x_3, x_1, x_5, x_6, x_8, x_9);
return x_10;
}
else
{
lean_object* x_11; lean_object* x_12; 
lean_dec(x_3);
x_11 = lean_box(x_2);
x_12 = lean_apply_2(x_4, x_1, x_11);
return x_12;
}
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__6(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__6___rarg___boxed), 4, 0);
return x_2;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__6___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
lean_dec(x_2);
x_6 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__6___rarg(x_1, x_5, x_3, x_4);
return x_6;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
if (lean_obj_tag(x_1) == 5)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_1, 1);
lean_inc(x_8);
x_9 = l_Lean_Expr_getAppFn(x_1);
switch (lean_obj_tag(x_9)) {
case 2:
{
lean_object* x_10; 
lean_dec(x_9);
lean_dec(x_8);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_10 = l_Lean_Meta_instantiateMVars(x_1, x_3, x_4, x_5, x_6, x_7);
if (lean_obj_tag(x_10) == 0)
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_12 = lean_ctor_get(x_10, 0);
x_13 = lean_ctor_get(x_10, 1);
x_14 = l_Lean_Expr_getAppFn(x_12);
x_15 = l_Lean_Expr_isMVar(x_14);
lean_dec(x_14);
if (x_15 == 0)
{
lean_free_object(x_10);
x_1 = x_12;
x_7 = x_13;
goto _start;
}
else
{
lean_object* x_17; 
lean_dec(x_12);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_17 = lean_box(0);
lean_ctor_set(x_10, 0, x_17);
return x_10;
}
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_18 = lean_ctor_get(x_10, 0);
x_19 = lean_ctor_get(x_10, 1);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_10);
x_20 = l_Lean_Expr_getAppFn(x_18);
x_21 = l_Lean_Expr_isMVar(x_20);
lean_dec(x_20);
if (x_21 == 0)
{
x_1 = x_18;
x_7 = x_19;
goto _start;
}
else
{
lean_object* x_23; lean_object* x_24; 
lean_dec(x_18);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_23 = lean_box(0);
x_24 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_24, 0, x_23);
lean_ctor_set(x_24, 1, x_19);
return x_24;
}
}
}
else
{
uint8_t x_25; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_25 = !lean_is_exclusive(x_10);
if (x_25 == 0)
{
return x_10;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_26 = lean_ctor_get(x_10, 0);
x_27 = lean_ctor_get(x_10, 1);
lean_inc(x_27);
lean_inc(x_26);
lean_dec(x_10);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_26);
lean_ctor_set(x_28, 1, x_27);
return x_28;
}
}
}
case 4:
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_113; lean_object* x_180; lean_object* x_263; uint8_t x_264; 
x_29 = lean_ctor_get(x_9, 0);
lean_inc(x_29);
lean_dec(x_9);
x_30 = lean_unsigned_to_nat(0u);
x_31 = l_Lean_Expr_getAppNumArgsAux(x_1, x_30);
x_263 = l_Lean_Meta_evalNat_visit___closed__19;
x_264 = lean_name_eq(x_29, x_263);
if (x_264 == 0)
{
lean_object* x_265; 
lean_dec(x_8);
x_265 = lean_box(0);
x_180 = x_265;
goto block_262;
}
else
{
lean_object* x_266; uint8_t x_267; 
x_266 = lean_unsigned_to_nat(1u);
x_267 = lean_nat_dec_eq(x_31, x_266);
if (x_267 == 0)
{
lean_object* x_268; 
lean_dec(x_8);
x_268 = lean_box(0);
x_180 = x_268;
goto block_262;
}
else
{
uint8_t x_269; lean_object* x_270; 
lean_dec(x_31);
lean_dec(x_29);
lean_dec(x_1);
x_269 = 0;
x_270 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_8, x_269, x_3, x_4, x_5, x_6, x_7);
if (lean_obj_tag(x_270) == 0)
{
lean_object* x_271; 
x_271 = lean_ctor_get(x_270, 0);
lean_inc(x_271);
if (lean_obj_tag(x_271) == 0)
{
uint8_t x_272; 
x_272 = !lean_is_exclusive(x_270);
if (x_272 == 0)
{
lean_object* x_273; lean_object* x_274; 
x_273 = lean_ctor_get(x_270, 0);
lean_dec(x_273);
x_274 = lean_box(0);
lean_ctor_set(x_270, 0, x_274);
return x_270;
}
else
{
lean_object* x_275; lean_object* x_276; lean_object* x_277; 
x_275 = lean_ctor_get(x_270, 1);
lean_inc(x_275);
lean_dec(x_270);
x_276 = lean_box(0);
x_277 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_277, 0, x_276);
lean_ctor_set(x_277, 1, x_275);
return x_277;
}
}
else
{
uint8_t x_278; 
x_278 = !lean_is_exclusive(x_271);
if (x_278 == 0)
{
uint8_t x_279; 
x_279 = !lean_is_exclusive(x_270);
if (x_279 == 0)
{
lean_object* x_280; lean_object* x_281; uint8_t x_282; 
x_280 = lean_ctor_get(x_271, 0);
x_281 = lean_ctor_get(x_270, 0);
lean_dec(x_281);
x_282 = !lean_is_exclusive(x_280);
if (x_282 == 0)
{
lean_object* x_283; lean_object* x_284; 
x_283 = lean_ctor_get(x_280, 1);
x_284 = lean_nat_add(x_283, x_266);
lean_dec(x_283);
lean_ctor_set(x_280, 1, x_284);
return x_270;
}
else
{
lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; 
x_285 = lean_ctor_get(x_280, 0);
x_286 = lean_ctor_get(x_280, 1);
lean_inc(x_286);
lean_inc(x_285);
lean_dec(x_280);
x_287 = lean_nat_add(x_286, x_266);
lean_dec(x_286);
x_288 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_288, 0, x_285);
lean_ctor_set(x_288, 1, x_287);
lean_ctor_set(x_271, 0, x_288);
return x_270;
}
}
else
{
lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; 
x_289 = lean_ctor_get(x_271, 0);
x_290 = lean_ctor_get(x_270, 1);
lean_inc(x_290);
lean_dec(x_270);
x_291 = lean_ctor_get(x_289, 0);
lean_inc(x_291);
x_292 = lean_ctor_get(x_289, 1);
lean_inc(x_292);
if (lean_is_exclusive(x_289)) {
 lean_ctor_release(x_289, 0);
 lean_ctor_release(x_289, 1);
 x_293 = x_289;
} else {
 lean_dec_ref(x_289);
 x_293 = lean_box(0);
}
x_294 = lean_nat_add(x_292, x_266);
lean_dec(x_292);
if (lean_is_scalar(x_293)) {
 x_295 = lean_alloc_ctor(0, 2, 0);
} else {
 x_295 = x_293;
}
lean_ctor_set(x_295, 0, x_291);
lean_ctor_set(x_295, 1, x_294);
lean_ctor_set(x_271, 0, x_295);
x_296 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_296, 0, x_271);
lean_ctor_set(x_296, 1, x_290);
return x_296;
}
}
else
{
lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; 
x_297 = lean_ctor_get(x_271, 0);
lean_inc(x_297);
lean_dec(x_271);
x_298 = lean_ctor_get(x_270, 1);
lean_inc(x_298);
if (lean_is_exclusive(x_270)) {
 lean_ctor_release(x_270, 0);
 lean_ctor_release(x_270, 1);
 x_299 = x_270;
} else {
 lean_dec_ref(x_270);
 x_299 = lean_box(0);
}
x_300 = lean_ctor_get(x_297, 0);
lean_inc(x_300);
x_301 = lean_ctor_get(x_297, 1);
lean_inc(x_301);
if (lean_is_exclusive(x_297)) {
 lean_ctor_release(x_297, 0);
 lean_ctor_release(x_297, 1);
 x_302 = x_297;
} else {
 lean_dec_ref(x_297);
 x_302 = lean_box(0);
}
x_303 = lean_nat_add(x_301, x_266);
lean_dec(x_301);
if (lean_is_scalar(x_302)) {
 x_304 = lean_alloc_ctor(0, 2, 0);
} else {
 x_304 = x_302;
}
lean_ctor_set(x_304, 0, x_300);
lean_ctor_set(x_304, 1, x_303);
x_305 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_305, 0, x_304);
if (lean_is_scalar(x_299)) {
 x_306 = lean_alloc_ctor(0, 2, 0);
} else {
 x_306 = x_299;
}
lean_ctor_set(x_306, 0, x_305);
lean_ctor_set(x_306, 1, x_298);
return x_306;
}
}
}
else
{
uint8_t x_307; 
x_307 = !lean_is_exclusive(x_270);
if (x_307 == 0)
{
return x_270;
}
else
{
lean_object* x_308; lean_object* x_309; lean_object* x_310; 
x_308 = lean_ctor_get(x_270, 0);
x_309 = lean_ctor_get(x_270, 1);
lean_inc(x_309);
lean_inc(x_308);
lean_dec(x_270);
x_310 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_310, 0, x_308);
lean_ctor_set(x_310, 1, x_309);
return x_310;
}
}
}
}
block_112:
{
lean_object* x_33; uint8_t x_34; 
lean_dec(x_32);
x_33 = l_myMacro____x40_Init_Notation___hyg_2705____closed__7;
x_34 = lean_name_eq(x_29, x_33);
lean_dec(x_29);
if (x_34 == 0)
{
lean_dec(x_31);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
if (x_2 == 0)
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_1);
lean_ctor_set(x_35, 1, x_30);
x_36 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_36, 0, x_35);
x_37 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_37, 0, x_36);
lean_ctor_set(x_37, 1, x_7);
return x_37;
}
else
{
lean_object* x_38; lean_object* x_39; 
lean_dec(x_1);
x_38 = lean_box(0);
x_39 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_39, 0, x_38);
lean_ctor_set(x_39, 1, x_7);
return x_39;
}
}
else
{
lean_object* x_40; uint8_t x_41; 
x_40 = lean_unsigned_to_nat(6u);
x_41 = lean_nat_dec_eq(x_31, x_40);
if (x_41 == 0)
{
lean_dec(x_31);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
if (x_2 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_42 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_42, 0, x_1);
lean_ctor_set(x_42, 1, x_30);
x_43 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_43, 0, x_42);
x_44 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_44, 0, x_43);
lean_ctor_set(x_44, 1, x_7);
return x_44;
}
else
{
lean_object* x_45; lean_object* x_46; 
lean_dec(x_1);
x_45 = lean_box(0);
x_46 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_46, 0, x_45);
lean_ctor_set(x_46, 1, x_7);
return x_46;
}
}
else
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_47 = lean_unsigned_to_nat(5u);
x_48 = lean_nat_sub(x_31, x_47);
x_49 = lean_unsigned_to_nat(1u);
x_50 = lean_nat_sub(x_48, x_49);
lean_dec(x_48);
x_51 = l_Lean_Expr_getRevArg_x21(x_1, x_50);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_52 = l_Lean_Meta_evalNat(x_51, x_3, x_4, x_5, x_6, x_7);
if (lean_obj_tag(x_52) == 0)
{
lean_object* x_53; 
x_53 = lean_ctor_get(x_52, 0);
lean_inc(x_53);
if (lean_obj_tag(x_53) == 0)
{
uint8_t x_54; 
lean_dec(x_31);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_54 = !lean_is_exclusive(x_52);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; 
x_55 = lean_ctor_get(x_52, 0);
lean_dec(x_55);
x_56 = lean_box(0);
lean_ctor_set(x_52, 0, x_56);
return x_52;
}
else
{
lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_57 = lean_ctor_get(x_52, 1);
lean_inc(x_57);
lean_dec(x_52);
x_58 = lean_box(0);
x_59 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_59, 0, x_58);
lean_ctor_set(x_59, 1, x_57);
return x_59;
}
}
else
{
lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_object* x_67; 
x_60 = lean_ctor_get(x_52, 1);
lean_inc(x_60);
lean_dec(x_52);
x_61 = lean_ctor_get(x_53, 0);
lean_inc(x_61);
lean_dec(x_53);
x_62 = lean_unsigned_to_nat(4u);
x_63 = lean_nat_sub(x_31, x_62);
lean_dec(x_31);
x_64 = lean_nat_sub(x_63, x_49);
lean_dec(x_63);
x_65 = l_Lean_Expr_getRevArg_x21(x_1, x_64);
lean_dec(x_1);
x_66 = 0;
x_67 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_65, x_66, x_3, x_4, x_5, x_6, x_60);
if (lean_obj_tag(x_67) == 0)
{
lean_object* x_68; 
x_68 = lean_ctor_get(x_67, 0);
lean_inc(x_68);
if (lean_obj_tag(x_68) == 0)
{
uint8_t x_69; 
lean_dec(x_61);
x_69 = !lean_is_exclusive(x_67);
if (x_69 == 0)
{
lean_object* x_70; lean_object* x_71; 
x_70 = lean_ctor_get(x_67, 0);
lean_dec(x_70);
x_71 = lean_box(0);
lean_ctor_set(x_67, 0, x_71);
return x_67;
}
else
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_72 = lean_ctor_get(x_67, 1);
lean_inc(x_72);
lean_dec(x_67);
x_73 = lean_box(0);
x_74 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_74, 0, x_73);
lean_ctor_set(x_74, 1, x_72);
return x_74;
}
}
else
{
uint8_t x_75; 
x_75 = !lean_is_exclusive(x_68);
if (x_75 == 0)
{
uint8_t x_76; 
x_76 = !lean_is_exclusive(x_67);
if (x_76 == 0)
{
lean_object* x_77; lean_object* x_78; uint8_t x_79; 
x_77 = lean_ctor_get(x_68, 0);
x_78 = lean_ctor_get(x_67, 0);
lean_dec(x_78);
x_79 = !lean_is_exclusive(x_77);
if (x_79 == 0)
{
lean_object* x_80; lean_object* x_81; 
x_80 = lean_ctor_get(x_77, 1);
x_81 = lean_nat_add(x_80, x_61);
lean_dec(x_61);
lean_dec(x_80);
lean_ctor_set(x_77, 1, x_81);
return x_67;
}
else
{
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; 
x_82 = lean_ctor_get(x_77, 0);
x_83 = lean_ctor_get(x_77, 1);
lean_inc(x_83);
lean_inc(x_82);
lean_dec(x_77);
x_84 = lean_nat_add(x_83, x_61);
lean_dec(x_61);
lean_dec(x_83);
x_85 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_85, 0, x_82);
lean_ctor_set(x_85, 1, x_84);
lean_ctor_set(x_68, 0, x_85);
return x_67;
}
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; 
x_86 = lean_ctor_get(x_68, 0);
x_87 = lean_ctor_get(x_67, 1);
lean_inc(x_87);
lean_dec(x_67);
x_88 = lean_ctor_get(x_86, 0);
lean_inc(x_88);
x_89 = lean_ctor_get(x_86, 1);
lean_inc(x_89);
if (lean_is_exclusive(x_86)) {
 lean_ctor_release(x_86, 0);
 lean_ctor_release(x_86, 1);
 x_90 = x_86;
} else {
 lean_dec_ref(x_86);
 x_90 = lean_box(0);
}
x_91 = lean_nat_add(x_89, x_61);
lean_dec(x_61);
lean_dec(x_89);
if (lean_is_scalar(x_90)) {
 x_92 = lean_alloc_ctor(0, 2, 0);
} else {
 x_92 = x_90;
}
lean_ctor_set(x_92, 0, x_88);
lean_ctor_set(x_92, 1, x_91);
lean_ctor_set(x_68, 0, x_92);
x_93 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_93, 0, x_68);
lean_ctor_set(x_93, 1, x_87);
return x_93;
}
}
else
{
lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; 
x_94 = lean_ctor_get(x_68, 0);
lean_inc(x_94);
lean_dec(x_68);
x_95 = lean_ctor_get(x_67, 1);
lean_inc(x_95);
if (lean_is_exclusive(x_67)) {
 lean_ctor_release(x_67, 0);
 lean_ctor_release(x_67, 1);
 x_96 = x_67;
} else {
 lean_dec_ref(x_67);
 x_96 = lean_box(0);
}
x_97 = lean_ctor_get(x_94, 0);
lean_inc(x_97);
x_98 = lean_ctor_get(x_94, 1);
lean_inc(x_98);
if (lean_is_exclusive(x_94)) {
 lean_ctor_release(x_94, 0);
 lean_ctor_release(x_94, 1);
 x_99 = x_94;
} else {
 lean_dec_ref(x_94);
 x_99 = lean_box(0);
}
x_100 = lean_nat_add(x_98, x_61);
lean_dec(x_61);
lean_dec(x_98);
if (lean_is_scalar(x_99)) {
 x_101 = lean_alloc_ctor(0, 2, 0);
} else {
 x_101 = x_99;
}
lean_ctor_set(x_101, 0, x_97);
lean_ctor_set(x_101, 1, x_100);
x_102 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_102, 0, x_101);
if (lean_is_scalar(x_96)) {
 x_103 = lean_alloc_ctor(0, 2, 0);
} else {
 x_103 = x_96;
}
lean_ctor_set(x_103, 0, x_102);
lean_ctor_set(x_103, 1, x_95);
return x_103;
}
}
}
else
{
uint8_t x_104; 
lean_dec(x_61);
x_104 = !lean_is_exclusive(x_67);
if (x_104 == 0)
{
return x_67;
}
else
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_105 = lean_ctor_get(x_67, 0);
x_106 = lean_ctor_get(x_67, 1);
lean_inc(x_106);
lean_inc(x_105);
lean_dec(x_67);
x_107 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_107, 0, x_105);
lean_ctor_set(x_107, 1, x_106);
return x_107;
}
}
}
}
else
{
uint8_t x_108; 
lean_dec(x_31);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_108 = !lean_is_exclusive(x_52);
if (x_108 == 0)
{
return x_52;
}
else
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; 
x_109 = lean_ctor_get(x_52, 0);
x_110 = lean_ctor_get(x_52, 1);
lean_inc(x_110);
lean_inc(x_109);
lean_dec(x_52);
x_111 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_111, 0, x_109);
lean_ctor_set(x_111, 1, x_110);
return x_111;
}
}
}
}
}
block_179:
{
lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; 
lean_dec(x_113);
x_114 = lean_unsigned_to_nat(3u);
x_115 = lean_nat_sub(x_31, x_114);
x_116 = lean_unsigned_to_nat(1u);
x_117 = lean_nat_sub(x_115, x_116);
lean_dec(x_115);
x_118 = l_Lean_Expr_getRevArg_x21(x_1, x_117);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_119 = l_Lean_Meta_evalNat(x_118, x_3, x_4, x_5, x_6, x_7);
if (lean_obj_tag(x_119) == 0)
{
lean_object* x_120; 
x_120 = lean_ctor_get(x_119, 0);
lean_inc(x_120);
if (lean_obj_tag(x_120) == 0)
{
uint8_t x_121; 
lean_dec(x_31);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_121 = !lean_is_exclusive(x_119);
if (x_121 == 0)
{
lean_object* x_122; lean_object* x_123; 
x_122 = lean_ctor_get(x_119, 0);
lean_dec(x_122);
x_123 = lean_box(0);
lean_ctor_set(x_119, 0, x_123);
return x_119;
}
else
{
lean_object* x_124; lean_object* x_125; lean_object* x_126; 
x_124 = lean_ctor_get(x_119, 1);
lean_inc(x_124);
lean_dec(x_119);
x_125 = lean_box(0);
x_126 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_126, 0, x_125);
lean_ctor_set(x_126, 1, x_124);
return x_126;
}
}
else
{
lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; 
x_127 = lean_ctor_get(x_119, 1);
lean_inc(x_127);
lean_dec(x_119);
x_128 = lean_ctor_get(x_120, 0);
lean_inc(x_128);
lean_dec(x_120);
x_129 = lean_unsigned_to_nat(2u);
x_130 = lean_nat_sub(x_31, x_129);
lean_dec(x_31);
x_131 = lean_nat_sub(x_130, x_116);
lean_dec(x_130);
x_132 = l_Lean_Expr_getRevArg_x21(x_1, x_131);
lean_dec(x_1);
x_133 = 0;
x_134 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_132, x_133, x_3, x_4, x_5, x_6, x_127);
if (lean_obj_tag(x_134) == 0)
{
lean_object* x_135; 
x_135 = lean_ctor_get(x_134, 0);
lean_inc(x_135);
if (lean_obj_tag(x_135) == 0)
{
uint8_t x_136; 
lean_dec(x_128);
x_136 = !lean_is_exclusive(x_134);
if (x_136 == 0)
{
lean_object* x_137; lean_object* x_138; 
x_137 = lean_ctor_get(x_134, 0);
lean_dec(x_137);
x_138 = lean_box(0);
lean_ctor_set(x_134, 0, x_138);
return x_134;
}
else
{
lean_object* x_139; lean_object* x_140; lean_object* x_141; 
x_139 = lean_ctor_get(x_134, 1);
lean_inc(x_139);
lean_dec(x_134);
x_140 = lean_box(0);
x_141 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_141, 0, x_140);
lean_ctor_set(x_141, 1, x_139);
return x_141;
}
}
else
{
uint8_t x_142; 
x_142 = !lean_is_exclusive(x_135);
if (x_142 == 0)
{
uint8_t x_143; 
x_143 = !lean_is_exclusive(x_134);
if (x_143 == 0)
{
lean_object* x_144; lean_object* x_145; uint8_t x_146; 
x_144 = lean_ctor_get(x_135, 0);
x_145 = lean_ctor_get(x_134, 0);
lean_dec(x_145);
x_146 = !lean_is_exclusive(x_144);
if (x_146 == 0)
{
lean_object* x_147; lean_object* x_148; 
x_147 = lean_ctor_get(x_144, 1);
x_148 = lean_nat_add(x_147, x_128);
lean_dec(x_128);
lean_dec(x_147);
lean_ctor_set(x_144, 1, x_148);
return x_134;
}
else
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_149 = lean_ctor_get(x_144, 0);
x_150 = lean_ctor_get(x_144, 1);
lean_inc(x_150);
lean_inc(x_149);
lean_dec(x_144);
x_151 = lean_nat_add(x_150, x_128);
lean_dec(x_128);
lean_dec(x_150);
x_152 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_152, 0, x_149);
lean_ctor_set(x_152, 1, x_151);
lean_ctor_set(x_135, 0, x_152);
return x_134;
}
}
else
{
lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; 
x_153 = lean_ctor_get(x_135, 0);
x_154 = lean_ctor_get(x_134, 1);
lean_inc(x_154);
lean_dec(x_134);
x_155 = lean_ctor_get(x_153, 0);
lean_inc(x_155);
x_156 = lean_ctor_get(x_153, 1);
lean_inc(x_156);
if (lean_is_exclusive(x_153)) {
 lean_ctor_release(x_153, 0);
 lean_ctor_release(x_153, 1);
 x_157 = x_153;
} else {
 lean_dec_ref(x_153);
 x_157 = lean_box(0);
}
x_158 = lean_nat_add(x_156, x_128);
lean_dec(x_128);
lean_dec(x_156);
if (lean_is_scalar(x_157)) {
 x_159 = lean_alloc_ctor(0, 2, 0);
} else {
 x_159 = x_157;
}
lean_ctor_set(x_159, 0, x_155);
lean_ctor_set(x_159, 1, x_158);
lean_ctor_set(x_135, 0, x_159);
x_160 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_160, 0, x_135);
lean_ctor_set(x_160, 1, x_154);
return x_160;
}
}
else
{
lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; 
x_161 = lean_ctor_get(x_135, 0);
lean_inc(x_161);
lean_dec(x_135);
x_162 = lean_ctor_get(x_134, 1);
lean_inc(x_162);
if (lean_is_exclusive(x_134)) {
 lean_ctor_release(x_134, 0);
 lean_ctor_release(x_134, 1);
 x_163 = x_134;
} else {
 lean_dec_ref(x_134);
 x_163 = lean_box(0);
}
x_164 = lean_ctor_get(x_161, 0);
lean_inc(x_164);
x_165 = lean_ctor_get(x_161, 1);
lean_inc(x_165);
if (lean_is_exclusive(x_161)) {
 lean_ctor_release(x_161, 0);
 lean_ctor_release(x_161, 1);
 x_166 = x_161;
} else {
 lean_dec_ref(x_161);
 x_166 = lean_box(0);
}
x_167 = lean_nat_add(x_165, x_128);
lean_dec(x_128);
lean_dec(x_165);
if (lean_is_scalar(x_166)) {
 x_168 = lean_alloc_ctor(0, 2, 0);
} else {
 x_168 = x_166;
}
lean_ctor_set(x_168, 0, x_164);
lean_ctor_set(x_168, 1, x_167);
x_169 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_169, 0, x_168);
if (lean_is_scalar(x_163)) {
 x_170 = lean_alloc_ctor(0, 2, 0);
} else {
 x_170 = x_163;
}
lean_ctor_set(x_170, 0, x_169);
lean_ctor_set(x_170, 1, x_162);
return x_170;
}
}
}
else
{
uint8_t x_171; 
lean_dec(x_128);
x_171 = !lean_is_exclusive(x_134);
if (x_171 == 0)
{
return x_134;
}
else
{
lean_object* x_172; lean_object* x_173; lean_object* x_174; 
x_172 = lean_ctor_get(x_134, 0);
x_173 = lean_ctor_get(x_134, 1);
lean_inc(x_173);
lean_inc(x_172);
lean_dec(x_134);
x_174 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_174, 0, x_172);
lean_ctor_set(x_174, 1, x_173);
return x_174;
}
}
}
}
else
{
uint8_t x_175; 
lean_dec(x_31);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_175 = !lean_is_exclusive(x_119);
if (x_175 == 0)
{
return x_119;
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; 
x_176 = lean_ctor_get(x_119, 0);
x_177 = lean_ctor_get(x_119, 1);
lean_inc(x_177);
lean_inc(x_176);
lean_dec(x_119);
x_178 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_178, 0, x_176);
lean_ctor_set(x_178, 1, x_177);
return x_178;
}
}
}
block_262:
{
lean_object* x_181; uint8_t x_182; 
lean_dec(x_180);
x_181 = l_Lean_Meta_evalNat_visit___closed__20;
x_182 = lean_name_eq(x_29, x_181);
if (x_182 == 0)
{
lean_object* x_183; uint8_t x_184; 
x_183 = l_Lean_Meta_evalNat_visit___closed__11;
x_184 = lean_name_eq(x_29, x_183);
if (x_184 == 0)
{
lean_object* x_185; 
x_185 = lean_box(0);
x_32 = x_185;
goto block_112;
}
else
{
lean_object* x_186; uint8_t x_187; 
x_186 = lean_unsigned_to_nat(4u);
x_187 = lean_nat_dec_eq(x_31, x_186);
if (x_187 == 0)
{
lean_object* x_188; 
x_188 = lean_box(0);
x_32 = x_188;
goto block_112;
}
else
{
lean_object* x_189; 
lean_dec(x_29);
x_189 = lean_box(0);
x_113 = x_189;
goto block_179;
}
}
}
else
{
lean_object* x_190; uint8_t x_191; 
x_190 = lean_unsigned_to_nat(2u);
x_191 = lean_nat_dec_eq(x_31, x_190);
if (x_191 == 0)
{
lean_object* x_192; uint8_t x_193; 
x_192 = l_Lean_Meta_evalNat_visit___closed__11;
x_193 = lean_name_eq(x_29, x_192);
if (x_193 == 0)
{
lean_object* x_194; 
x_194 = lean_box(0);
x_32 = x_194;
goto block_112;
}
else
{
lean_object* x_195; uint8_t x_196; 
x_195 = lean_unsigned_to_nat(4u);
x_196 = lean_nat_dec_eq(x_31, x_195);
if (x_196 == 0)
{
lean_object* x_197; 
x_197 = lean_box(0);
x_32 = x_197;
goto block_112;
}
else
{
lean_object* x_198; 
lean_dec(x_29);
x_198 = lean_box(0);
x_113 = x_198;
goto block_179;
}
}
}
else
{
lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; 
lean_dec(x_29);
x_199 = lean_unsigned_to_nat(1u);
x_200 = lean_nat_sub(x_31, x_199);
x_201 = lean_nat_sub(x_200, x_199);
lean_dec(x_200);
x_202 = l_Lean_Expr_getRevArg_x21(x_1, x_201);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_203 = l_Lean_Meta_evalNat(x_202, x_3, x_4, x_5, x_6, x_7);
if (lean_obj_tag(x_203) == 0)
{
lean_object* x_204; 
x_204 = lean_ctor_get(x_203, 0);
lean_inc(x_204);
if (lean_obj_tag(x_204) == 0)
{
uint8_t x_205; 
lean_dec(x_31);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_205 = !lean_is_exclusive(x_203);
if (x_205 == 0)
{
lean_object* x_206; lean_object* x_207; 
x_206 = lean_ctor_get(x_203, 0);
lean_dec(x_206);
x_207 = lean_box(0);
lean_ctor_set(x_203, 0, x_207);
return x_203;
}
else
{
lean_object* x_208; lean_object* x_209; lean_object* x_210; 
x_208 = lean_ctor_get(x_203, 1);
lean_inc(x_208);
lean_dec(x_203);
x_209 = lean_box(0);
x_210 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_210, 0, x_209);
lean_ctor_set(x_210, 1, x_208);
return x_210;
}
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; uint8_t x_216; lean_object* x_217; 
x_211 = lean_ctor_get(x_203, 1);
lean_inc(x_211);
lean_dec(x_203);
x_212 = lean_ctor_get(x_204, 0);
lean_inc(x_212);
lean_dec(x_204);
x_213 = lean_nat_sub(x_31, x_30);
lean_dec(x_31);
x_214 = lean_nat_sub(x_213, x_199);
lean_dec(x_213);
x_215 = l_Lean_Expr_getRevArg_x21(x_1, x_214);
lean_dec(x_1);
x_216 = 0;
x_217 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_215, x_216, x_3, x_4, x_5, x_6, x_211);
if (lean_obj_tag(x_217) == 0)
{
lean_object* x_218; 
x_218 = lean_ctor_get(x_217, 0);
lean_inc(x_218);
if (lean_obj_tag(x_218) == 0)
{
uint8_t x_219; 
lean_dec(x_212);
x_219 = !lean_is_exclusive(x_217);
if (x_219 == 0)
{
lean_object* x_220; lean_object* x_221; 
x_220 = lean_ctor_get(x_217, 0);
lean_dec(x_220);
x_221 = lean_box(0);
lean_ctor_set(x_217, 0, x_221);
return x_217;
}
else
{
lean_object* x_222; lean_object* x_223; lean_object* x_224; 
x_222 = lean_ctor_get(x_217, 1);
lean_inc(x_222);
lean_dec(x_217);
x_223 = lean_box(0);
x_224 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_224, 0, x_223);
lean_ctor_set(x_224, 1, x_222);
return x_224;
}
}
else
{
uint8_t x_225; 
x_225 = !lean_is_exclusive(x_218);
if (x_225 == 0)
{
uint8_t x_226; 
x_226 = !lean_is_exclusive(x_217);
if (x_226 == 0)
{
lean_object* x_227; lean_object* x_228; uint8_t x_229; 
x_227 = lean_ctor_get(x_218, 0);
x_228 = lean_ctor_get(x_217, 0);
lean_dec(x_228);
x_229 = !lean_is_exclusive(x_227);
if (x_229 == 0)
{
lean_object* x_230; lean_object* x_231; 
x_230 = lean_ctor_get(x_227, 1);
x_231 = lean_nat_add(x_230, x_212);
lean_dec(x_212);
lean_dec(x_230);
lean_ctor_set(x_227, 1, x_231);
return x_217;
}
else
{
lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; 
x_232 = lean_ctor_get(x_227, 0);
x_233 = lean_ctor_get(x_227, 1);
lean_inc(x_233);
lean_inc(x_232);
lean_dec(x_227);
x_234 = lean_nat_add(x_233, x_212);
lean_dec(x_212);
lean_dec(x_233);
x_235 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_235, 0, x_232);
lean_ctor_set(x_235, 1, x_234);
lean_ctor_set(x_218, 0, x_235);
return x_217;
}
}
else
{
lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; 
x_236 = lean_ctor_get(x_218, 0);
x_237 = lean_ctor_get(x_217, 1);
lean_inc(x_237);
lean_dec(x_217);
x_238 = lean_ctor_get(x_236, 0);
lean_inc(x_238);
x_239 = lean_ctor_get(x_236, 1);
lean_inc(x_239);
if (lean_is_exclusive(x_236)) {
 lean_ctor_release(x_236, 0);
 lean_ctor_release(x_236, 1);
 x_240 = x_236;
} else {
 lean_dec_ref(x_236);
 x_240 = lean_box(0);
}
x_241 = lean_nat_add(x_239, x_212);
lean_dec(x_212);
lean_dec(x_239);
if (lean_is_scalar(x_240)) {
 x_242 = lean_alloc_ctor(0, 2, 0);
} else {
 x_242 = x_240;
}
lean_ctor_set(x_242, 0, x_238);
lean_ctor_set(x_242, 1, x_241);
lean_ctor_set(x_218, 0, x_242);
x_243 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_243, 0, x_218);
lean_ctor_set(x_243, 1, x_237);
return x_243;
}
}
else
{
lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; 
x_244 = lean_ctor_get(x_218, 0);
lean_inc(x_244);
lean_dec(x_218);
x_245 = lean_ctor_get(x_217, 1);
lean_inc(x_245);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 x_246 = x_217;
} else {
 lean_dec_ref(x_217);
 x_246 = lean_box(0);
}
x_247 = lean_ctor_get(x_244, 0);
lean_inc(x_247);
x_248 = lean_ctor_get(x_244, 1);
lean_inc(x_248);
if (lean_is_exclusive(x_244)) {
 lean_ctor_release(x_244, 0);
 lean_ctor_release(x_244, 1);
 x_249 = x_244;
} else {
 lean_dec_ref(x_244);
 x_249 = lean_box(0);
}
x_250 = lean_nat_add(x_248, x_212);
lean_dec(x_212);
lean_dec(x_248);
if (lean_is_scalar(x_249)) {
 x_251 = lean_alloc_ctor(0, 2, 0);
} else {
 x_251 = x_249;
}
lean_ctor_set(x_251, 0, x_247);
lean_ctor_set(x_251, 1, x_250);
x_252 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_252, 0, x_251);
if (lean_is_scalar(x_246)) {
 x_253 = lean_alloc_ctor(0, 2, 0);
} else {
 x_253 = x_246;
}
lean_ctor_set(x_253, 0, x_252);
lean_ctor_set(x_253, 1, x_245);
return x_253;
}
}
}
else
{
uint8_t x_254; 
lean_dec(x_212);
x_254 = !lean_is_exclusive(x_217);
if (x_254 == 0)
{
return x_217;
}
else
{
lean_object* x_255; lean_object* x_256; lean_object* x_257; 
x_255 = lean_ctor_get(x_217, 0);
x_256 = lean_ctor_get(x_217, 1);
lean_inc(x_256);
lean_inc(x_255);
lean_dec(x_217);
x_257 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_257, 0, x_255);
lean_ctor_set(x_257, 1, x_256);
return x_257;
}
}
}
}
else
{
uint8_t x_258; 
lean_dec(x_31);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_258 = !lean_is_exclusive(x_203);
if (x_258 == 0)
{
return x_203;
}
else
{
lean_object* x_259; lean_object* x_260; lean_object* x_261; 
x_259 = lean_ctor_get(x_203, 0);
x_260 = lean_ctor_get(x_203, 1);
lean_inc(x_260);
lean_inc(x_259);
lean_dec(x_203);
x_261 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_261, 0, x_259);
lean_ctor_set(x_261, 1, x_260);
return x_261;
}
}
}
}
}
}
default: 
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
if (x_2 == 0)
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; 
x_311 = lean_unsigned_to_nat(0u);
x_312 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_312, 0, x_1);
lean_ctor_set(x_312, 1, x_311);
x_313 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_313, 0, x_312);
x_314 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_314, 0, x_313);
lean_ctor_set(x_314, 1, x_7);
return x_314;
}
else
{
lean_object* x_315; lean_object* x_316; 
lean_dec(x_1);
x_315 = lean_box(0);
x_316 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_316, 0, x_315);
lean_ctor_set(x_316, 1, x_7);
return x_316;
}
}
}
}
else
{
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
if (x_2 == 0)
{
lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; 
x_317 = lean_unsigned_to_nat(0u);
x_318 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_318, 0, x_1);
lean_ctor_set(x_318, 1, x_317);
x_319 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_319, 0, x_318);
x_320 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_320, 0, x_319);
lean_ctor_set(x_320, 1, x_7);
return x_320;
}
else
{
lean_object* x_321; lean_object* x_322; 
lean_dec(x_1);
x_321 = lean_box(0);
x_322 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_322, 0, x_321);
lean_ctor_set(x_322, 1, x_7);
return x_322;
}
}
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
uint8_t x_8; lean_object* x_9; 
x_8 = lean_unbox(x_2);
lean_dec(x_2);
x_9 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_1, x_8, x_3, x_4, x_5, x_6, x_7);
return x_9;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffset(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; lean_object* x_8; 
x_7 = 1;
x_8 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_1, x_7, x_2, x_3, x_4, x_5, x_6);
return x_8;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 2:
{
lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; 
lean_dec(x_4);
lean_dec(x_3);
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
lean_dec(x_1);
x_7 = lean_box_uint64(x_6);
x_8 = lean_apply_2(x_2, x_5, x_7);
return x_8;
}
case 4:
{
lean_object* x_9; lean_object* x_10; uint64_t x_11; lean_object* x_12; lean_object* x_13; 
lean_dec(x_4);
lean_dec(x_2);
x_9 = lean_ctor_get(x_1, 0);
lean_inc(x_9);
x_10 = lean_ctor_get(x_1, 1);
lean_inc(x_10);
x_11 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
lean_dec(x_1);
x_12 = lean_box_uint64(x_11);
x_13 = lean_apply_3(x_3, x_9, x_10, x_12);
return x_13;
}
default: 
{
lean_object* x_14; 
lean_dec(x_3);
lean_dec(x_2);
x_14 = lean_apply_1(x_4, x_1);
return x_14;
}
}
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__1___rarg), 4, 0);
return x_2;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 5)
{
lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; 
lean_dec(x_3);
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
x_7 = lean_box_uint64(x_6);
x_8 = lean_apply_4(x_2, x_1, x_4, x_5, x_7);
return x_8;
}
else
{
lean_object* x_9; 
lean_dec(x_2);
x_9 = lean_apply_1(x_3, x_1);
return x_9;
}
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__2___rarg), 3, 0);
return x_2;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
if (lean_obj_tag(x_1) == 5)
{
lean_object* x_7; 
x_7 = l_Lean_Expr_getAppFn(x_1);
switch (lean_obj_tag(x_7)) {
case 2:
{
lean_object* x_8; 
lean_dec(x_7);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_8 = l_Lean_Meta_instantiateMVars(x_1, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_8) == 0)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_10 = lean_ctor_get(x_8, 0);
x_11 = lean_ctor_get(x_8, 1);
x_12 = l_Lean_Expr_getAppFn(x_10);
x_13 = l_Lean_Expr_isMVar(x_12);
lean_dec(x_12);
if (x_13 == 0)
{
lean_free_object(x_8);
x_1 = x_10;
x_6 = x_11;
goto _start;
}
else
{
lean_object* x_15; 
lean_dec(x_10);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_15 = lean_box(0);
lean_ctor_set(x_8, 0, x_15);
return x_8;
}
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; 
x_16 = lean_ctor_get(x_8, 0);
x_17 = lean_ctor_get(x_8, 1);
lean_inc(x_17);
lean_inc(x_16);
lean_dec(x_8);
x_18 = l_Lean_Expr_getAppFn(x_16);
x_19 = l_Lean_Expr_isMVar(x_18);
lean_dec(x_18);
if (x_19 == 0)
{
x_1 = x_16;
x_6 = x_17;
goto _start;
}
else
{
lean_object* x_21; lean_object* x_22; 
lean_dec(x_16);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_21 = lean_box(0);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_17);
return x_22;
}
}
}
else
{
uint8_t x_23; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_23 = !lean_is_exclusive(x_8);
if (x_23 == 0)
{
return x_8;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_24 = lean_ctor_get(x_8, 0);
x_25 = lean_ctor_get(x_8, 1);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_8);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_24);
lean_ctor_set(x_26, 1, x_25);
return x_26;
}
}
}
case 4:
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_42; lean_object* x_66; uint8_t x_67; 
x_27 = lean_ctor_get(x_7, 0);
lean_inc(x_27);
lean_dec(x_7);
x_28 = lean_unsigned_to_nat(0u);
x_29 = l_Lean_Expr_getAppNumArgsAux(x_1, x_28);
x_66 = l_Lean_Meta_evalNat_visit___closed__19;
x_67 = lean_name_eq(x_27, x_66);
if (x_67 == 0)
{
lean_object* x_68; 
x_68 = lean_box(0);
x_42 = x_68;
goto block_65;
}
else
{
lean_object* x_69; uint8_t x_70; 
x_69 = lean_unsigned_to_nat(1u);
x_70 = lean_nat_dec_eq(x_29, x_69);
if (x_70 == 0)
{
lean_object* x_71; 
x_71 = lean_box(0);
x_42 = x_71;
goto block_65;
}
else
{
uint8_t x_72; lean_object* x_73; 
lean_dec(x_29);
lean_dec(x_27);
x_72 = 1;
x_73 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_1, x_72, x_2, x_3, x_4, x_5, x_6);
return x_73;
}
}
block_41:
{
lean_object* x_31; uint8_t x_32; 
lean_dec(x_30);
x_31 = l_myMacro____x40_Init_Notation___hyg_2705____closed__7;
x_32 = lean_name_eq(x_27, x_31);
lean_dec(x_27);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; 
lean_dec(x_29);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_33 = lean_box(0);
x_34 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_34, 0, x_33);
lean_ctor_set(x_34, 1, x_6);
return x_34;
}
else
{
lean_object* x_35; uint8_t x_36; 
x_35 = lean_unsigned_to_nat(6u);
x_36 = lean_nat_dec_eq(x_29, x_35);
lean_dec(x_29);
if (x_36 == 0)
{
lean_object* x_37; lean_object* x_38; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_37 = lean_box(0);
x_38 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_38, 0, x_37);
lean_ctor_set(x_38, 1, x_6);
return x_38;
}
else
{
uint8_t x_39; lean_object* x_40; 
x_39 = 1;
x_40 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_1, x_39, x_2, x_3, x_4, x_5, x_6);
return x_40;
}
}
}
block_65:
{
lean_object* x_43; uint8_t x_44; 
lean_dec(x_42);
x_43 = l_Lean_Meta_evalNat_visit___closed__20;
x_44 = lean_name_eq(x_27, x_43);
if (x_44 == 0)
{
lean_object* x_45; uint8_t x_46; 
x_45 = l_Lean_Meta_evalNat_visit___closed__11;
x_46 = lean_name_eq(x_27, x_45);
if (x_46 == 0)
{
lean_object* x_47; 
x_47 = lean_box(0);
x_30 = x_47;
goto block_41;
}
else
{
lean_object* x_48; uint8_t x_49; 
x_48 = lean_unsigned_to_nat(4u);
x_49 = lean_nat_dec_eq(x_29, x_48);
if (x_49 == 0)
{
lean_object* x_50; 
x_50 = lean_box(0);
x_30 = x_50;
goto block_41;
}
else
{
uint8_t x_51; lean_object* x_52; 
lean_dec(x_29);
lean_dec(x_27);
x_51 = 1;
x_52 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_1, x_51, x_2, x_3, x_4, x_5, x_6);
return x_52;
}
}
}
else
{
lean_object* x_53; uint8_t x_54; 
x_53 = lean_unsigned_to_nat(2u);
x_54 = lean_nat_dec_eq(x_29, x_53);
if (x_54 == 0)
{
lean_object* x_55; uint8_t x_56; 
x_55 = l_Lean_Meta_evalNat_visit___closed__11;
x_56 = lean_name_eq(x_27, x_55);
if (x_56 == 0)
{
lean_object* x_57; 
x_57 = lean_box(0);
x_30 = x_57;
goto block_41;
}
else
{
lean_object* x_58; uint8_t x_59; 
x_58 = lean_unsigned_to_nat(4u);
x_59 = lean_nat_dec_eq(x_29, x_58);
if (x_59 == 0)
{
lean_object* x_60; 
x_60 = lean_box(0);
x_30 = x_60;
goto block_41;
}
else
{
uint8_t x_61; lean_object* x_62; 
lean_dec(x_29);
lean_dec(x_27);
x_61 = 1;
x_62 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_1, x_61, x_2, x_3, x_4, x_5, x_6);
return x_62;
}
}
}
else
{
uint8_t x_63; lean_object* x_64; 
lean_dec(x_29);
lean_dec(x_27);
x_63 = 1;
x_64 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_1, x_63, x_2, x_3, x_4, x_5, x_6);
return x_64;
}
}
}
}
default: 
{
lean_object* x_74; lean_object* x_75; 
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_74 = lean_box(0);
x_75 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_75, 0, x_74);
lean_ctor_set(x_75, 1, x_6);
return x_75;
}
}
}
else
{
lean_object* x_76; lean_object* x_77; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_76 = lean_box(0);
x_77 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_77, 0, x_76);
lean_ctor_set(x_77, 1, x_6);
return x_77;
}
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; 
lean_dec(x_2);
x_4 = lean_apply_1(x_3, x_1);
return x_4;
}
else
{
lean_object* x_5; lean_object* x_6; 
lean_dec(x_3);
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
lean_dec(x_1);
x_6 = lean_apply_1(x_2, x_5);
return x_6;
}
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero_match__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero_match__1___rarg), 3, 0);
return x_2;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Meta_evalNat(x_1, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
if (lean_obj_tag(x_8) == 0)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_7);
if (x_9 == 0)
{
lean_object* x_10; uint8_t x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_7, 0);
lean_dec(x_10);
x_11 = 0;
x_12 = lean_box(x_11);
lean_ctor_set(x_7, 0, x_12);
return x_7;
}
else
{
lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; 
x_13 = lean_ctor_get(x_7, 1);
lean_inc(x_13);
lean_dec(x_7);
x_14 = 0;
x_15 = lean_box(x_14);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_13);
return x_16;
}
}
else
{
uint8_t x_17; 
x_17 = !lean_is_exclusive(x_7);
if (x_17 == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; 
x_18 = lean_ctor_get(x_7, 0);
lean_dec(x_18);
x_19 = lean_ctor_get(x_8, 0);
lean_inc(x_19);
lean_dec(x_8);
x_20 = lean_unsigned_to_nat(0u);
x_21 = lean_nat_dec_eq(x_19, x_20);
lean_dec(x_19);
x_22 = lean_box(x_21);
lean_ctor_set(x_7, 0, x_22);
return x_7;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; 
x_23 = lean_ctor_get(x_7, 1);
lean_inc(x_23);
lean_dec(x_7);
x_24 = lean_ctor_get(x_8, 0);
lean_inc(x_24);
lean_dec(x_8);
x_25 = lean_unsigned_to_nat(0u);
x_26 = lean_nat_dec_eq(x_24, x_25);
lean_dec(x_24);
x_27 = lean_box(x_26);
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_28, 1, x_23);
return x_28;
}
}
}
else
{
uint8_t x_29; 
x_29 = !lean_is_exclusive(x_7);
if (x_29 == 0)
{
return x_7;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_30 = lean_ctor_get(x_7, 0);
x_31 = lean_ctor_get(x_7, 1);
lean_inc(x_31);
lean_inc(x_30);
lean_dec(x_7);
x_32 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_32, 0, x_30);
lean_ctor_set(x_32, 1, x_31);
return x_32;
}
}
}
}
static lean_object* _init_l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Meta_evalNat_visit___closed__20;
x_3 = l_Lean_mkConst(x_2, x_1);
return x_3;
}
}
lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; uint8_t x_9; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = lean_nat_dec_eq(x_2, x_8);
if (x_9 == 0)
{
lean_object* x_10; 
lean_inc(x_1);
x_10 = l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero(x_1, x_3, x_4, x_5, x_6, x_7);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
if (x_12 == 0)
{
uint8_t x_13; 
x_13 = !lean_is_exclusive(x_10);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_14 = lean_ctor_get(x_10, 0);
lean_dec(x_14);
x_15 = l_Lean_mkNatLit(x_2);
x_16 = l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset___closed__1;
x_17 = l_Lean_mkAppB(x_16, x_1, x_15);
lean_ctor_set(x_10, 0, x_17);
return x_10;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_18 = lean_ctor_get(x_10, 1);
lean_inc(x_18);
lean_dec(x_10);
x_19 = l_Lean_mkNatLit(x_2);
x_20 = l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset___closed__1;
x_21 = l_Lean_mkAppB(x_20, x_1, x_19);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_18);
return x_22;
}
}
else
{
uint8_t x_23; 
lean_dec(x_1);
x_23 = !lean_is_exclusive(x_10);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; 
x_24 = lean_ctor_get(x_10, 0);
lean_dec(x_24);
x_25 = l_Lean_mkNatLit(x_2);
lean_ctor_set(x_10, 0, x_25);
return x_10;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_26 = lean_ctor_get(x_10, 1);
lean_inc(x_26);
lean_dec(x_10);
x_27 = l_Lean_mkNatLit(x_2);
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_28, 1, x_26);
return x_28;
}
}
}
else
{
uint8_t x_29; 
lean_dec(x_2);
lean_dec(x_1);
x_29 = !lean_is_exclusive(x_10);
if (x_29 == 0)
{
return x_10;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_30 = lean_ctor_get(x_10, 0);
x_31 = lean_ctor_get(x_10, 1);
lean_inc(x_31);
lean_inc(x_30);
lean_dec(x_10);
x_32 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_32, 0, x_30);
lean_ctor_set(x_32, 1, x_31);
return x_32;
}
}
}
else
{
lean_object* x_33; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_33 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_33, 0, x_1);
lean_ctor_set(x_33, 1, x_7);
return x_33;
}
}
}
lean_object* l_Lean_Meta_isDefEqOffset_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; lean_object* x_5; 
lean_dec(x_2);
x_4 = lean_box(0);
x_5 = lean_apply_1(x_3, x_4);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_3);
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_apply_1(x_2, x_6);
return x_7;
}
}
}
lean_object* l_Lean_Meta_isDefEqOffset_match__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_isDefEqOffset_match__1___rarg), 3, 0);
return x_2;
}
}
lean_object* l_Lean_Meta_isDefEqOffset_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; lean_object* x_5; 
lean_dec(x_2);
x_4 = lean_box(0);
x_5 = lean_apply_1(x_3, x_4);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
lean_dec(x_3);
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_6, 1);
lean_inc(x_8);
lean_dec(x_6);
x_9 = lean_apply_2(x_2, x_7, x_8);
return x_9;
}
}
}
lean_object* l_Lean_Meta_isDefEqOffset_match__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_isDefEqOffset_match__2___rarg), 3, 0);
return x_2;
}
}
lean_object* l_Lean_Meta_isDefEqOffset_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; lean_object* x_5; 
lean_dec(x_2);
x_4 = lean_box(0);
x_5 = lean_apply_1(x_3, x_4);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_3);
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_apply_1(x_2, x_6);
return x_7;
}
}
}
lean_object* l_Lean_Meta_isDefEqOffset_match__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_isDefEqOffset_match__3___rarg), 3, 0);
return x_2;
}
}
lean_object* l_Lean_Meta_isDefEqOffset_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; lean_object* x_5; 
lean_dec(x_2);
x_4 = lean_box(0);
x_5 = lean_apply_1(x_3, x_4);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
lean_dec(x_3);
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_6, 1);
lean_inc(x_8);
lean_dec(x_6);
x_9 = lean_apply_2(x_2, x_7, x_8);
return x_9;
}
}
}
lean_object* l_Lean_Meta_isDefEqOffset_match__4(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_isDefEqOffset_match__4___rarg), 3, 0);
return x_2;
}
}
lean_object* l_Lean_Meta_isDefEqOffset_match__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; lean_object* x_5; 
lean_dec(x_2);
x_4 = lean_box(0);
x_5 = lean_apply_1(x_3, x_4);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_3);
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_apply_1(x_2, x_6);
return x_7;
}
}
}
lean_object* l_Lean_Meta_isDefEqOffset_match__5(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_isDefEqOffset_match__5___rarg), 3, 0);
return x_2;
}
}
lean_object* l_Lean_Meta_isDefEqOffset_match__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; lean_object* x_5; 
lean_dec(x_2);
x_4 = lean_box(0);
x_5 = lean_apply_1(x_3, x_4);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
lean_dec(x_3);
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_6, 1);
lean_inc(x_8);
lean_dec(x_6);
x_9 = lean_apply_2(x_2, x_7, x_8);
return x_9;
}
}
}
lean_object* l_Lean_Meta_isDefEqOffset_match__6(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_isDefEqOffset_match__6___rarg), 3, 0);
return x_2;
}
}
lean_object* l_Lean_Meta_isDefEqOffset(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_1);
x_8 = l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset(x_1, x_3, x_4, x_5, x_6, x_7);
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_9; 
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; lean_object* x_11; 
x_10 = lean_ctor_get(x_8, 1);
lean_inc(x_10);
lean_dec(x_8);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_1);
x_11 = l_Lean_Meta_evalNat(x_1, x_3, x_4, x_5, x_6, x_10);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_12; 
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
if (lean_obj_tag(x_12) == 0)
{
uint8_t x_13; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_13 = !lean_is_exclusive(x_11);
if (x_13 == 0)
{
lean_object* x_14; uint8_t x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_11, 0);
lean_dec(x_14);
x_15 = 2;
x_16 = lean_box(x_15);
lean_ctor_set(x_11, 0, x_16);
return x_11;
}
else
{
lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; 
x_17 = lean_ctor_get(x_11, 1);
lean_inc(x_17);
lean_dec(x_11);
x_18 = 2;
x_19 = lean_box(x_18);
x_20 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_17);
return x_20;
}
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_21 = lean_ctor_get(x_11, 1);
lean_inc(x_21);
lean_dec(x_11);
x_22 = lean_ctor_get(x_12, 0);
lean_inc(x_22);
lean_dec(x_12);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_23 = l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset(x_2, x_3, x_4, x_5, x_6, x_21);
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_24; 
x_24 = lean_ctor_get(x_23, 0);
lean_inc(x_24);
if (lean_obj_tag(x_24) == 0)
{
lean_object* x_25; lean_object* x_26; 
x_25 = lean_ctor_get(x_23, 1);
lean_inc(x_25);
lean_dec(x_23);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_26 = l_Lean_Meta_evalNat(x_2, x_3, x_4, x_5, x_6, x_25);
if (lean_obj_tag(x_26) == 0)
{
lean_object* x_27; 
x_27 = lean_ctor_get(x_26, 0);
lean_inc(x_27);
if (lean_obj_tag(x_27) == 0)
{
uint8_t x_28; 
lean_dec(x_22);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_28 = !lean_is_exclusive(x_26);
if (x_28 == 0)
{
lean_object* x_29; uint8_t x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_26, 0);
lean_dec(x_29);
x_30 = 2;
x_31 = lean_box(x_30);
lean_ctor_set(x_26, 0, x_31);
return x_26;
}
else
{
lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; 
x_32 = lean_ctor_get(x_26, 1);
lean_inc(x_32);
lean_dec(x_26);
x_33 = 2;
x_34 = lean_box(x_33);
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_34);
lean_ctor_set(x_35, 1, x_32);
return x_35;
}
}
else
{
lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; lean_object* x_40; 
x_36 = lean_ctor_get(x_26, 1);
lean_inc(x_36);
lean_dec(x_26);
x_37 = lean_ctor_get(x_27, 0);
lean_inc(x_37);
lean_dec(x_27);
x_38 = lean_nat_dec_eq(x_22, x_37);
lean_dec(x_37);
lean_dec(x_22);
x_39 = l_Bool_toLBool(x_38);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_40 = l_Lean_Meta_inferType(x_1, x_3, x_4, x_5, x_6, x_36);
if (lean_obj_tag(x_40) == 0)
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_41 = lean_ctor_get(x_40, 0);
lean_inc(x_41);
x_42 = lean_ctor_get(x_40, 1);
lean_inc(x_42);
lean_dec(x_40);
x_43 = l_Lean_Literal_type___closed__3;
x_44 = l_Lean_Meta_isExprDefEqAux(x_41, x_43, x_3, x_4, x_5, x_6, x_42);
if (lean_obj_tag(x_44) == 0)
{
lean_object* x_45; uint8_t x_46; 
x_45 = lean_ctor_get(x_44, 0);
lean_inc(x_45);
x_46 = lean_unbox(x_45);
lean_dec(x_45);
if (x_46 == 0)
{
uint8_t x_47; 
x_47 = !lean_is_exclusive(x_44);
if (x_47 == 0)
{
lean_object* x_48; uint8_t x_49; lean_object* x_50; 
x_48 = lean_ctor_get(x_44, 0);
lean_dec(x_48);
x_49 = 2;
x_50 = lean_box(x_49);
lean_ctor_set(x_44, 0, x_50);
return x_44;
}
else
{
lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; 
x_51 = lean_ctor_get(x_44, 1);
lean_inc(x_51);
lean_dec(x_44);
x_52 = 2;
x_53 = lean_box(x_52);
x_54 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_54, 0, x_53);
lean_ctor_set(x_54, 1, x_51);
return x_54;
}
}
else
{
uint8_t x_55; 
x_55 = !lean_is_exclusive(x_44);
if (x_55 == 0)
{
lean_object* x_56; lean_object* x_57; 
x_56 = lean_ctor_get(x_44, 0);
lean_dec(x_56);
x_57 = lean_box(x_39);
lean_ctor_set(x_44, 0, x_57);
return x_44;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_58 = lean_ctor_get(x_44, 1);
lean_inc(x_58);
lean_dec(x_44);
x_59 = lean_box(x_39);
x_60 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_58);
return x_60;
}
}
}
else
{
uint8_t x_61; 
x_61 = !lean_is_exclusive(x_44);
if (x_61 == 0)
{
return x_44;
}
else
{
lean_object* x_62; lean_object* x_63; lean_object* x_64; 
x_62 = lean_ctor_get(x_44, 0);
x_63 = lean_ctor_get(x_44, 1);
lean_inc(x_63);
lean_inc(x_62);
lean_dec(x_44);
x_64 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_64, 0, x_62);
lean_ctor_set(x_64, 1, x_63);
return x_64;
}
}
}
else
{
uint8_t x_65; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_65 = !lean_is_exclusive(x_40);
if (x_65 == 0)
{
return x_40;
}
else
{
lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_66 = lean_ctor_get(x_40, 0);
x_67 = lean_ctor_get(x_40, 1);
lean_inc(x_67);
lean_inc(x_66);
lean_dec(x_40);
x_68 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_68, 0, x_66);
lean_ctor_set(x_68, 1, x_67);
return x_68;
}
}
}
}
else
{
uint8_t x_69; 
lean_dec(x_22);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_69 = !lean_is_exclusive(x_26);
if (x_69 == 0)
{
return x_26;
}
else
{
lean_object* x_70; lean_object* x_71; lean_object* x_72; 
x_70 = lean_ctor_get(x_26, 0);
x_71 = lean_ctor_get(x_26, 1);
lean_inc(x_71);
lean_inc(x_70);
lean_dec(x_26);
x_72 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_72, 0, x_70);
lean_ctor_set(x_72, 1, x_71);
return x_72;
}
}
}
else
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; 
lean_dec(x_2);
x_73 = lean_ctor_get(x_24, 0);
lean_inc(x_73);
lean_dec(x_24);
x_74 = lean_ctor_get(x_23, 1);
lean_inc(x_74);
lean_dec(x_23);
x_75 = lean_ctor_get(x_73, 0);
lean_inc(x_75);
x_76 = lean_ctor_get(x_73, 1);
lean_inc(x_76);
lean_dec(x_73);
x_77 = lean_nat_dec_le(x_76, x_22);
if (x_77 == 0)
{
lean_object* x_78; 
lean_dec(x_76);
lean_dec(x_75);
lean_dec(x_22);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_78 = l_Lean_Meta_inferType(x_1, x_3, x_4, x_5, x_6, x_74);
if (lean_obj_tag(x_78) == 0)
{
lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; 
x_79 = lean_ctor_get(x_78, 0);
lean_inc(x_79);
x_80 = lean_ctor_get(x_78, 1);
lean_inc(x_80);
lean_dec(x_78);
x_81 = l_Lean_Literal_type___closed__3;
x_82 = l_Lean_Meta_isExprDefEqAux(x_79, x_81, x_3, x_4, x_5, x_6, x_80);
if (lean_obj_tag(x_82) == 0)
{
lean_object* x_83; uint8_t x_84; 
x_83 = lean_ctor_get(x_82, 0);
lean_inc(x_83);
x_84 = lean_unbox(x_83);
lean_dec(x_83);
if (x_84 == 0)
{
uint8_t x_85; 
x_85 = !lean_is_exclusive(x_82);
if (x_85 == 0)
{
lean_object* x_86; uint8_t x_87; lean_object* x_88; 
x_86 = lean_ctor_get(x_82, 0);
lean_dec(x_86);
x_87 = 2;
x_88 = lean_box(x_87);
lean_ctor_set(x_82, 0, x_88);
return x_82;
}
else
{
lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; 
x_89 = lean_ctor_get(x_82, 1);
lean_inc(x_89);
lean_dec(x_82);
x_90 = 2;
x_91 = lean_box(x_90);
x_92 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_92, 0, x_91);
lean_ctor_set(x_92, 1, x_89);
return x_92;
}
}
else
{
uint8_t x_93; 
x_93 = !lean_is_exclusive(x_82);
if (x_93 == 0)
{
lean_object* x_94; uint8_t x_95; lean_object* x_96; 
x_94 = lean_ctor_get(x_82, 0);
lean_dec(x_94);
x_95 = 0;
x_96 = lean_box(x_95);
lean_ctor_set(x_82, 0, x_96);
return x_82;
}
else
{
lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; 
x_97 = lean_ctor_get(x_82, 1);
lean_inc(x_97);
lean_dec(x_82);
x_98 = 0;
x_99 = lean_box(x_98);
x_100 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_97);
return x_100;
}
}
}
else
{
uint8_t x_101; 
x_101 = !lean_is_exclusive(x_82);
if (x_101 == 0)
{
return x_82;
}
else
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_102 = lean_ctor_get(x_82, 0);
x_103 = lean_ctor_get(x_82, 1);
lean_inc(x_103);
lean_inc(x_102);
lean_dec(x_82);
x_104 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_104, 0, x_102);
lean_ctor_set(x_104, 1, x_103);
return x_104;
}
}
}
else
{
uint8_t x_105; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_105 = !lean_is_exclusive(x_78);
if (x_105 == 0)
{
return x_78;
}
else
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_106 = lean_ctor_get(x_78, 0);
x_107 = lean_ctor_get(x_78, 1);
lean_inc(x_107);
lean_inc(x_106);
lean_dec(x_78);
x_108 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_108, 0, x_106);
lean_ctor_set(x_108, 1, x_107);
return x_108;
}
}
}
else
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; 
x_109 = lean_nat_sub(x_22, x_76);
lean_dec(x_76);
lean_dec(x_22);
x_110 = l_Lean_mkNatLit(x_109);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_111 = l_Lean_Meta_inferType(x_1, x_3, x_4, x_5, x_6, x_74);
if (lean_obj_tag(x_111) == 0)
{
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_112 = lean_ctor_get(x_111, 0);
lean_inc(x_112);
x_113 = lean_ctor_get(x_111, 1);
lean_inc(x_113);
lean_dec(x_111);
x_114 = l_Lean_Literal_type___closed__3;
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_115 = l_Lean_Meta_isExprDefEqAux(x_112, x_114, x_3, x_4, x_5, x_6, x_113);
if (lean_obj_tag(x_115) == 0)
{
lean_object* x_116; uint8_t x_117; 
x_116 = lean_ctor_get(x_115, 0);
lean_inc(x_116);
x_117 = lean_unbox(x_116);
lean_dec(x_116);
if (x_117 == 0)
{
uint8_t x_118; 
lean_dec(x_110);
lean_dec(x_75);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_118 = !lean_is_exclusive(x_115);
if (x_118 == 0)
{
lean_object* x_119; uint8_t x_120; lean_object* x_121; 
x_119 = lean_ctor_get(x_115, 0);
lean_dec(x_119);
x_120 = 2;
x_121 = lean_box(x_120);
lean_ctor_set(x_115, 0, x_121);
return x_115;
}
else
{
lean_object* x_122; uint8_t x_123; lean_object* x_124; lean_object* x_125; 
x_122 = lean_ctor_get(x_115, 1);
lean_inc(x_122);
lean_dec(x_115);
x_123 = 2;
x_124 = lean_box(x_123);
x_125 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_125, 0, x_124);
lean_ctor_set(x_125, 1, x_122);
return x_125;
}
}
else
{
lean_object* x_126; lean_object* x_127; 
x_126 = lean_ctor_get(x_115, 1);
lean_inc(x_126);
lean_dec(x_115);
x_127 = l_Lean_Meta_isExprDefEqAux(x_110, x_75, x_3, x_4, x_5, x_6, x_126);
if (lean_obj_tag(x_127) == 0)
{
uint8_t x_128; 
x_128 = !lean_is_exclusive(x_127);
if (x_128 == 0)
{
lean_object* x_129; uint8_t x_130; uint8_t x_131; lean_object* x_132; 
x_129 = lean_ctor_get(x_127, 0);
x_130 = lean_unbox(x_129);
lean_dec(x_129);
x_131 = l_Bool_toLBool(x_130);
x_132 = lean_box(x_131);
lean_ctor_set(x_127, 0, x_132);
return x_127;
}
else
{
lean_object* x_133; lean_object* x_134; uint8_t x_135; uint8_t x_136; lean_object* x_137; lean_object* x_138; 
x_133 = lean_ctor_get(x_127, 0);
x_134 = lean_ctor_get(x_127, 1);
lean_inc(x_134);
lean_inc(x_133);
lean_dec(x_127);
x_135 = lean_unbox(x_133);
lean_dec(x_133);
x_136 = l_Bool_toLBool(x_135);
x_137 = lean_box(x_136);
x_138 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_138, 0, x_137);
lean_ctor_set(x_138, 1, x_134);
return x_138;
}
}
else
{
uint8_t x_139; 
x_139 = !lean_is_exclusive(x_127);
if (x_139 == 0)
{
return x_127;
}
else
{
lean_object* x_140; lean_object* x_141; lean_object* x_142; 
x_140 = lean_ctor_get(x_127, 0);
x_141 = lean_ctor_get(x_127, 1);
lean_inc(x_141);
lean_inc(x_140);
lean_dec(x_127);
x_142 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_142, 0, x_140);
lean_ctor_set(x_142, 1, x_141);
return x_142;
}
}
}
}
else
{
uint8_t x_143; 
lean_dec(x_110);
lean_dec(x_75);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_143 = !lean_is_exclusive(x_115);
if (x_143 == 0)
{
return x_115;
}
else
{
lean_object* x_144; lean_object* x_145; lean_object* x_146; 
x_144 = lean_ctor_get(x_115, 0);
x_145 = lean_ctor_get(x_115, 1);
lean_inc(x_145);
lean_inc(x_144);
lean_dec(x_115);
x_146 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_146, 0, x_144);
lean_ctor_set(x_146, 1, x_145);
return x_146;
}
}
}
else
{
uint8_t x_147; 
lean_dec(x_110);
lean_dec(x_75);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_147 = !lean_is_exclusive(x_111);
if (x_147 == 0)
{
return x_111;
}
else
{
lean_object* x_148; lean_object* x_149; lean_object* x_150; 
x_148 = lean_ctor_get(x_111, 0);
x_149 = lean_ctor_get(x_111, 1);
lean_inc(x_149);
lean_inc(x_148);
lean_dec(x_111);
x_150 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_150, 0, x_148);
lean_ctor_set(x_150, 1, x_149);
return x_150;
}
}
}
}
}
else
{
uint8_t x_151; 
lean_dec(x_22);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_151 = !lean_is_exclusive(x_23);
if (x_151 == 0)
{
return x_23;
}
else
{
lean_object* x_152; lean_object* x_153; lean_object* x_154; 
x_152 = lean_ctor_get(x_23, 0);
x_153 = lean_ctor_get(x_23, 1);
lean_inc(x_153);
lean_inc(x_152);
lean_dec(x_23);
x_154 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_154, 0, x_152);
lean_ctor_set(x_154, 1, x_153);
return x_154;
}
}
}
}
else
{
uint8_t x_155; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_155 = !lean_is_exclusive(x_11);
if (x_155 == 0)
{
return x_11;
}
else
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; 
x_156 = lean_ctor_get(x_11, 0);
x_157 = lean_ctor_get(x_11, 1);
lean_inc(x_157);
lean_inc(x_156);
lean_dec(x_11);
x_158 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_158, 0, x_156);
lean_ctor_set(x_158, 1, x_157);
return x_158;
}
}
}
else
{
lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_159 = lean_ctor_get(x_9, 0);
lean_inc(x_159);
lean_dec(x_9);
x_160 = lean_ctor_get(x_8, 1);
lean_inc(x_160);
lean_dec(x_8);
x_161 = lean_ctor_get(x_159, 0);
lean_inc(x_161);
x_162 = lean_ctor_get(x_159, 1);
lean_inc(x_162);
lean_dec(x_159);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_163 = l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset(x_2, x_3, x_4, x_5, x_6, x_160);
if (lean_obj_tag(x_163) == 0)
{
lean_object* x_164; 
x_164 = lean_ctor_get(x_163, 0);
lean_inc(x_164);
if (lean_obj_tag(x_164) == 0)
{
lean_object* x_165; lean_object* x_166; 
x_165 = lean_ctor_get(x_163, 1);
lean_inc(x_165);
lean_dec(x_163);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_166 = l_Lean_Meta_evalNat(x_2, x_3, x_4, x_5, x_6, x_165);
if (lean_obj_tag(x_166) == 0)
{
lean_object* x_167; 
x_167 = lean_ctor_get(x_166, 0);
lean_inc(x_167);
if (lean_obj_tag(x_167) == 0)
{
uint8_t x_168; 
lean_dec(x_162);
lean_dec(x_161);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_168 = !lean_is_exclusive(x_166);
if (x_168 == 0)
{
lean_object* x_169; uint8_t x_170; lean_object* x_171; 
x_169 = lean_ctor_get(x_166, 0);
lean_dec(x_169);
x_170 = 2;
x_171 = lean_box(x_170);
lean_ctor_set(x_166, 0, x_171);
return x_166;
}
else
{
lean_object* x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; 
x_172 = lean_ctor_get(x_166, 1);
lean_inc(x_172);
lean_dec(x_166);
x_173 = 2;
x_174 = lean_box(x_173);
x_175 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_175, 0, x_174);
lean_ctor_set(x_175, 1, x_172);
return x_175;
}
}
else
{
lean_object* x_176; lean_object* x_177; uint8_t x_178; 
x_176 = lean_ctor_get(x_166, 1);
lean_inc(x_176);
lean_dec(x_166);
x_177 = lean_ctor_get(x_167, 0);
lean_inc(x_177);
lean_dec(x_167);
x_178 = lean_nat_dec_le(x_162, x_177);
if (x_178 == 0)
{
lean_object* x_179; 
lean_dec(x_177);
lean_dec(x_162);
lean_dec(x_161);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_179 = l_Lean_Meta_inferType(x_1, x_3, x_4, x_5, x_6, x_176);
if (lean_obj_tag(x_179) == 0)
{
lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; 
x_180 = lean_ctor_get(x_179, 0);
lean_inc(x_180);
x_181 = lean_ctor_get(x_179, 1);
lean_inc(x_181);
lean_dec(x_179);
x_182 = l_Lean_Literal_type___closed__3;
x_183 = l_Lean_Meta_isExprDefEqAux(x_180, x_182, x_3, x_4, x_5, x_6, x_181);
if (lean_obj_tag(x_183) == 0)
{
lean_object* x_184; uint8_t x_185; 
x_184 = lean_ctor_get(x_183, 0);
lean_inc(x_184);
x_185 = lean_unbox(x_184);
lean_dec(x_184);
if (x_185 == 0)
{
uint8_t x_186; 
x_186 = !lean_is_exclusive(x_183);
if (x_186 == 0)
{
lean_object* x_187; uint8_t x_188; lean_object* x_189; 
x_187 = lean_ctor_get(x_183, 0);
lean_dec(x_187);
x_188 = 2;
x_189 = lean_box(x_188);
lean_ctor_set(x_183, 0, x_189);
return x_183;
}
else
{
lean_object* x_190; uint8_t x_191; lean_object* x_192; lean_object* x_193; 
x_190 = lean_ctor_get(x_183, 1);
lean_inc(x_190);
lean_dec(x_183);
x_191 = 2;
x_192 = lean_box(x_191);
x_193 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_193, 0, x_192);
lean_ctor_set(x_193, 1, x_190);
return x_193;
}
}
else
{
uint8_t x_194; 
x_194 = !lean_is_exclusive(x_183);
if (x_194 == 0)
{
lean_object* x_195; uint8_t x_196; lean_object* x_197; 
x_195 = lean_ctor_get(x_183, 0);
lean_dec(x_195);
x_196 = 0;
x_197 = lean_box(x_196);
lean_ctor_set(x_183, 0, x_197);
return x_183;
}
else
{
lean_object* x_198; uint8_t x_199; lean_object* x_200; lean_object* x_201; 
x_198 = lean_ctor_get(x_183, 1);
lean_inc(x_198);
lean_dec(x_183);
x_199 = 0;
x_200 = lean_box(x_199);
x_201 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_201, 0, x_200);
lean_ctor_set(x_201, 1, x_198);
return x_201;
}
}
}
else
{
uint8_t x_202; 
x_202 = !lean_is_exclusive(x_183);
if (x_202 == 0)
{
return x_183;
}
else
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; 
x_203 = lean_ctor_get(x_183, 0);
x_204 = lean_ctor_get(x_183, 1);
lean_inc(x_204);
lean_inc(x_203);
lean_dec(x_183);
x_205 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_205, 0, x_203);
lean_ctor_set(x_205, 1, x_204);
return x_205;
}
}
}
else
{
uint8_t x_206; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_206 = !lean_is_exclusive(x_179);
if (x_206 == 0)
{
return x_179;
}
else
{
lean_object* x_207; lean_object* x_208; lean_object* x_209; 
x_207 = lean_ctor_get(x_179, 0);
x_208 = lean_ctor_get(x_179, 1);
lean_inc(x_208);
lean_inc(x_207);
lean_dec(x_179);
x_209 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_209, 0, x_207);
lean_ctor_set(x_209, 1, x_208);
return x_209;
}
}
}
else
{
lean_object* x_210; lean_object* x_211; lean_object* x_212; 
x_210 = lean_nat_sub(x_177, x_162);
lean_dec(x_162);
lean_dec(x_177);
x_211 = l_Lean_mkNatLit(x_210);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_212 = l_Lean_Meta_inferType(x_1, x_3, x_4, x_5, x_6, x_176);
if (lean_obj_tag(x_212) == 0)
{
lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; 
x_213 = lean_ctor_get(x_212, 0);
lean_inc(x_213);
x_214 = lean_ctor_get(x_212, 1);
lean_inc(x_214);
lean_dec(x_212);
x_215 = l_Lean_Literal_type___closed__3;
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_216 = l_Lean_Meta_isExprDefEqAux(x_213, x_215, x_3, x_4, x_5, x_6, x_214);
if (lean_obj_tag(x_216) == 0)
{
lean_object* x_217; uint8_t x_218; 
x_217 = lean_ctor_get(x_216, 0);
lean_inc(x_217);
x_218 = lean_unbox(x_217);
lean_dec(x_217);
if (x_218 == 0)
{
uint8_t x_219; 
lean_dec(x_211);
lean_dec(x_161);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_219 = !lean_is_exclusive(x_216);
if (x_219 == 0)
{
lean_object* x_220; uint8_t x_221; lean_object* x_222; 
x_220 = lean_ctor_get(x_216, 0);
lean_dec(x_220);
x_221 = 2;
x_222 = lean_box(x_221);
lean_ctor_set(x_216, 0, x_222);
return x_216;
}
else
{
lean_object* x_223; uint8_t x_224; lean_object* x_225; lean_object* x_226; 
x_223 = lean_ctor_get(x_216, 1);
lean_inc(x_223);
lean_dec(x_216);
x_224 = 2;
x_225 = lean_box(x_224);
x_226 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_226, 0, x_225);
lean_ctor_set(x_226, 1, x_223);
return x_226;
}
}
else
{
lean_object* x_227; lean_object* x_228; 
x_227 = lean_ctor_get(x_216, 1);
lean_inc(x_227);
lean_dec(x_216);
x_228 = l_Lean_Meta_isExprDefEqAux(x_161, x_211, x_3, x_4, x_5, x_6, x_227);
if (lean_obj_tag(x_228) == 0)
{
uint8_t x_229; 
x_229 = !lean_is_exclusive(x_228);
if (x_229 == 0)
{
lean_object* x_230; uint8_t x_231; uint8_t x_232; lean_object* x_233; 
x_230 = lean_ctor_get(x_228, 0);
x_231 = lean_unbox(x_230);
lean_dec(x_230);
x_232 = l_Bool_toLBool(x_231);
x_233 = lean_box(x_232);
lean_ctor_set(x_228, 0, x_233);
return x_228;
}
else
{
lean_object* x_234; lean_object* x_235; uint8_t x_236; uint8_t x_237; lean_object* x_238; lean_object* x_239; 
x_234 = lean_ctor_get(x_228, 0);
x_235 = lean_ctor_get(x_228, 1);
lean_inc(x_235);
lean_inc(x_234);
lean_dec(x_228);
x_236 = lean_unbox(x_234);
lean_dec(x_234);
x_237 = l_Bool_toLBool(x_236);
x_238 = lean_box(x_237);
x_239 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_239, 0, x_238);
lean_ctor_set(x_239, 1, x_235);
return x_239;
}
}
else
{
uint8_t x_240; 
x_240 = !lean_is_exclusive(x_228);
if (x_240 == 0)
{
return x_228;
}
else
{
lean_object* x_241; lean_object* x_242; lean_object* x_243; 
x_241 = lean_ctor_get(x_228, 0);
x_242 = lean_ctor_get(x_228, 1);
lean_inc(x_242);
lean_inc(x_241);
lean_dec(x_228);
x_243 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_243, 0, x_241);
lean_ctor_set(x_243, 1, x_242);
return x_243;
}
}
}
}
else
{
uint8_t x_244; 
lean_dec(x_211);
lean_dec(x_161);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_244 = !lean_is_exclusive(x_216);
if (x_244 == 0)
{
return x_216;
}
else
{
lean_object* x_245; lean_object* x_246; lean_object* x_247; 
x_245 = lean_ctor_get(x_216, 0);
x_246 = lean_ctor_get(x_216, 1);
lean_inc(x_246);
lean_inc(x_245);
lean_dec(x_216);
x_247 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_247, 0, x_245);
lean_ctor_set(x_247, 1, x_246);
return x_247;
}
}
}
else
{
uint8_t x_248; 
lean_dec(x_211);
lean_dec(x_161);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_248 = !lean_is_exclusive(x_212);
if (x_248 == 0)
{
return x_212;
}
else
{
lean_object* x_249; lean_object* x_250; lean_object* x_251; 
x_249 = lean_ctor_get(x_212, 0);
x_250 = lean_ctor_get(x_212, 1);
lean_inc(x_250);
lean_inc(x_249);
lean_dec(x_212);
x_251 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_251, 0, x_249);
lean_ctor_set(x_251, 1, x_250);
return x_251;
}
}
}
}
}
else
{
uint8_t x_252; 
lean_dec(x_162);
lean_dec(x_161);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_252 = !lean_is_exclusive(x_166);
if (x_252 == 0)
{
return x_166;
}
else
{
lean_object* x_253; lean_object* x_254; lean_object* x_255; 
x_253 = lean_ctor_get(x_166, 0);
x_254 = lean_ctor_get(x_166, 1);
lean_inc(x_254);
lean_inc(x_253);
lean_dec(x_166);
x_255 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_255, 0, x_253);
lean_ctor_set(x_255, 1, x_254);
return x_255;
}
}
}
else
{
lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; uint8_t x_260; 
lean_dec(x_2);
x_256 = lean_ctor_get(x_164, 0);
lean_inc(x_256);
lean_dec(x_164);
x_257 = lean_ctor_get(x_163, 1);
lean_inc(x_257);
lean_dec(x_163);
x_258 = lean_ctor_get(x_256, 0);
lean_inc(x_258);
x_259 = lean_ctor_get(x_256, 1);
lean_inc(x_259);
lean_dec(x_256);
x_260 = lean_nat_dec_eq(x_162, x_259);
if (x_260 == 0)
{
uint8_t x_261; 
x_261 = lean_nat_dec_lt(x_162, x_259);
if (x_261 == 0)
{
lean_object* x_262; lean_object* x_263; 
x_262 = lean_nat_sub(x_162, x_259);
lean_dec(x_259);
lean_dec(x_162);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_263 = l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset(x_161, x_262, x_3, x_4, x_5, x_6, x_257);
if (lean_obj_tag(x_263) == 0)
{
lean_object* x_264; lean_object* x_265; lean_object* x_266; 
x_264 = lean_ctor_get(x_263, 0);
lean_inc(x_264);
x_265 = lean_ctor_get(x_263, 1);
lean_inc(x_265);
lean_dec(x_263);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_266 = l_Lean_Meta_inferType(x_1, x_3, x_4, x_5, x_6, x_265);
if (lean_obj_tag(x_266) == 0)
{
lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; 
x_267 = lean_ctor_get(x_266, 0);
lean_inc(x_267);
x_268 = lean_ctor_get(x_266, 1);
lean_inc(x_268);
lean_dec(x_266);
x_269 = l_Lean_Literal_type___closed__3;
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_270 = l_Lean_Meta_isExprDefEqAux(x_267, x_269, x_3, x_4, x_5, x_6, x_268);
if (lean_obj_tag(x_270) == 0)
{
lean_object* x_271; uint8_t x_272; 
x_271 = lean_ctor_get(x_270, 0);
lean_inc(x_271);
x_272 = lean_unbox(x_271);
lean_dec(x_271);
if (x_272 == 0)
{
uint8_t x_273; 
lean_dec(x_264);
lean_dec(x_258);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_273 = !lean_is_exclusive(x_270);
if (x_273 == 0)
{
lean_object* x_274; uint8_t x_275; lean_object* x_276; 
x_274 = lean_ctor_get(x_270, 0);
lean_dec(x_274);
x_275 = 2;
x_276 = lean_box(x_275);
lean_ctor_set(x_270, 0, x_276);
return x_270;
}
else
{
lean_object* x_277; uint8_t x_278; lean_object* x_279; lean_object* x_280; 
x_277 = lean_ctor_get(x_270, 1);
lean_inc(x_277);
lean_dec(x_270);
x_278 = 2;
x_279 = lean_box(x_278);
x_280 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_280, 0, x_279);
lean_ctor_set(x_280, 1, x_277);
return x_280;
}
}
else
{
lean_object* x_281; lean_object* x_282; 
x_281 = lean_ctor_get(x_270, 1);
lean_inc(x_281);
lean_dec(x_270);
x_282 = l_Lean_Meta_isExprDefEqAux(x_264, x_258, x_3, x_4, x_5, x_6, x_281);
if (lean_obj_tag(x_282) == 0)
{
uint8_t x_283; 
x_283 = !lean_is_exclusive(x_282);
if (x_283 == 0)
{
lean_object* x_284; uint8_t x_285; uint8_t x_286; lean_object* x_287; 
x_284 = lean_ctor_get(x_282, 0);
x_285 = lean_unbox(x_284);
lean_dec(x_284);
x_286 = l_Bool_toLBool(x_285);
x_287 = lean_box(x_286);
lean_ctor_set(x_282, 0, x_287);
return x_282;
}
else
{
lean_object* x_288; lean_object* x_289; uint8_t x_290; uint8_t x_291; lean_object* x_292; lean_object* x_293; 
x_288 = lean_ctor_get(x_282, 0);
x_289 = lean_ctor_get(x_282, 1);
lean_inc(x_289);
lean_inc(x_288);
lean_dec(x_282);
x_290 = lean_unbox(x_288);
lean_dec(x_288);
x_291 = l_Bool_toLBool(x_290);
x_292 = lean_box(x_291);
x_293 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_293, 0, x_292);
lean_ctor_set(x_293, 1, x_289);
return x_293;
}
}
else
{
uint8_t x_294; 
x_294 = !lean_is_exclusive(x_282);
if (x_294 == 0)
{
return x_282;
}
else
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; 
x_295 = lean_ctor_get(x_282, 0);
x_296 = lean_ctor_get(x_282, 1);
lean_inc(x_296);
lean_inc(x_295);
lean_dec(x_282);
x_297 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_297, 0, x_295);
lean_ctor_set(x_297, 1, x_296);
return x_297;
}
}
}
}
else
{
uint8_t x_298; 
lean_dec(x_264);
lean_dec(x_258);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_298 = !lean_is_exclusive(x_270);
if (x_298 == 0)
{
return x_270;
}
else
{
lean_object* x_299; lean_object* x_300; lean_object* x_301; 
x_299 = lean_ctor_get(x_270, 0);
x_300 = lean_ctor_get(x_270, 1);
lean_inc(x_300);
lean_inc(x_299);
lean_dec(x_270);
x_301 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_301, 0, x_299);
lean_ctor_set(x_301, 1, x_300);
return x_301;
}
}
}
else
{
uint8_t x_302; 
lean_dec(x_264);
lean_dec(x_258);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_302 = !lean_is_exclusive(x_266);
if (x_302 == 0)
{
return x_266;
}
else
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; 
x_303 = lean_ctor_get(x_266, 0);
x_304 = lean_ctor_get(x_266, 1);
lean_inc(x_304);
lean_inc(x_303);
lean_dec(x_266);
x_305 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_305, 0, x_303);
lean_ctor_set(x_305, 1, x_304);
return x_305;
}
}
}
else
{
uint8_t x_306; 
lean_dec(x_258);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_306 = !lean_is_exclusive(x_263);
if (x_306 == 0)
{
return x_263;
}
else
{
lean_object* x_307; lean_object* x_308; lean_object* x_309; 
x_307 = lean_ctor_get(x_263, 0);
x_308 = lean_ctor_get(x_263, 1);
lean_inc(x_308);
lean_inc(x_307);
lean_dec(x_263);
x_309 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_309, 0, x_307);
lean_ctor_set(x_309, 1, x_308);
return x_309;
}
}
}
else
{
lean_object* x_310; lean_object* x_311; 
x_310 = lean_nat_sub(x_259, x_162);
lean_dec(x_162);
lean_dec(x_259);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_311 = l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset(x_258, x_310, x_3, x_4, x_5, x_6, x_257);
if (lean_obj_tag(x_311) == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; 
x_312 = lean_ctor_get(x_311, 0);
lean_inc(x_312);
x_313 = lean_ctor_get(x_311, 1);
lean_inc(x_313);
lean_dec(x_311);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_314 = l_Lean_Meta_inferType(x_1, x_3, x_4, x_5, x_6, x_313);
if (lean_obj_tag(x_314) == 0)
{
lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; 
x_315 = lean_ctor_get(x_314, 0);
lean_inc(x_315);
x_316 = lean_ctor_get(x_314, 1);
lean_inc(x_316);
lean_dec(x_314);
x_317 = l_Lean_Literal_type___closed__3;
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_318 = l_Lean_Meta_isExprDefEqAux(x_315, x_317, x_3, x_4, x_5, x_6, x_316);
if (lean_obj_tag(x_318) == 0)
{
lean_object* x_319; uint8_t x_320; 
x_319 = lean_ctor_get(x_318, 0);
lean_inc(x_319);
x_320 = lean_unbox(x_319);
lean_dec(x_319);
if (x_320 == 0)
{
uint8_t x_321; 
lean_dec(x_312);
lean_dec(x_161);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_321 = !lean_is_exclusive(x_318);
if (x_321 == 0)
{
lean_object* x_322; uint8_t x_323; lean_object* x_324; 
x_322 = lean_ctor_get(x_318, 0);
lean_dec(x_322);
x_323 = 2;
x_324 = lean_box(x_323);
lean_ctor_set(x_318, 0, x_324);
return x_318;
}
else
{
lean_object* x_325; uint8_t x_326; lean_object* x_327; lean_object* x_328; 
x_325 = lean_ctor_get(x_318, 1);
lean_inc(x_325);
lean_dec(x_318);
x_326 = 2;
x_327 = lean_box(x_326);
x_328 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_328, 0, x_327);
lean_ctor_set(x_328, 1, x_325);
return x_328;
}
}
else
{
lean_object* x_329; lean_object* x_330; 
x_329 = lean_ctor_get(x_318, 1);
lean_inc(x_329);
lean_dec(x_318);
x_330 = l_Lean_Meta_isExprDefEqAux(x_161, x_312, x_3, x_4, x_5, x_6, x_329);
if (lean_obj_tag(x_330) == 0)
{
uint8_t x_331; 
x_331 = !lean_is_exclusive(x_330);
if (x_331 == 0)
{
lean_object* x_332; uint8_t x_333; uint8_t x_334; lean_object* x_335; 
x_332 = lean_ctor_get(x_330, 0);
x_333 = lean_unbox(x_332);
lean_dec(x_332);
x_334 = l_Bool_toLBool(x_333);
x_335 = lean_box(x_334);
lean_ctor_set(x_330, 0, x_335);
return x_330;
}
else
{
lean_object* x_336; lean_object* x_337; uint8_t x_338; uint8_t x_339; lean_object* x_340; lean_object* x_341; 
x_336 = lean_ctor_get(x_330, 0);
x_337 = lean_ctor_get(x_330, 1);
lean_inc(x_337);
lean_inc(x_336);
lean_dec(x_330);
x_338 = lean_unbox(x_336);
lean_dec(x_336);
x_339 = l_Bool_toLBool(x_338);
x_340 = lean_box(x_339);
x_341 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_341, 0, x_340);
lean_ctor_set(x_341, 1, x_337);
return x_341;
}
}
else
{
uint8_t x_342; 
x_342 = !lean_is_exclusive(x_330);
if (x_342 == 0)
{
return x_330;
}
else
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_343 = lean_ctor_get(x_330, 0);
x_344 = lean_ctor_get(x_330, 1);
lean_inc(x_344);
lean_inc(x_343);
lean_dec(x_330);
x_345 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_345, 0, x_343);
lean_ctor_set(x_345, 1, x_344);
return x_345;
}
}
}
}
else
{
uint8_t x_346; 
lean_dec(x_312);
lean_dec(x_161);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_346 = !lean_is_exclusive(x_318);
if (x_346 == 0)
{
return x_318;
}
else
{
lean_object* x_347; lean_object* x_348; lean_object* x_349; 
x_347 = lean_ctor_get(x_318, 0);
x_348 = lean_ctor_get(x_318, 1);
lean_inc(x_348);
lean_inc(x_347);
lean_dec(x_318);
x_349 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_349, 0, x_347);
lean_ctor_set(x_349, 1, x_348);
return x_349;
}
}
}
else
{
uint8_t x_350; 
lean_dec(x_312);
lean_dec(x_161);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_350 = !lean_is_exclusive(x_314);
if (x_350 == 0)
{
return x_314;
}
else
{
lean_object* x_351; lean_object* x_352; lean_object* x_353; 
x_351 = lean_ctor_get(x_314, 0);
x_352 = lean_ctor_get(x_314, 1);
lean_inc(x_352);
lean_inc(x_351);
lean_dec(x_314);
x_353 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_353, 0, x_351);
lean_ctor_set(x_353, 1, x_352);
return x_353;
}
}
}
else
{
uint8_t x_354; 
lean_dec(x_161);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_354 = !lean_is_exclusive(x_311);
if (x_354 == 0)
{
return x_311;
}
else
{
lean_object* x_355; lean_object* x_356; lean_object* x_357; 
x_355 = lean_ctor_get(x_311, 0);
x_356 = lean_ctor_get(x_311, 1);
lean_inc(x_356);
lean_inc(x_355);
lean_dec(x_311);
x_357 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_357, 0, x_355);
lean_ctor_set(x_357, 1, x_356);
return x_357;
}
}
}
}
else
{
lean_object* x_358; 
lean_dec(x_259);
lean_dec(x_162);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_358 = l_Lean_Meta_inferType(x_1, x_3, x_4, x_5, x_6, x_257);
if (lean_obj_tag(x_358) == 0)
{
lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; 
x_359 = lean_ctor_get(x_358, 0);
lean_inc(x_359);
x_360 = lean_ctor_get(x_358, 1);
lean_inc(x_360);
lean_dec(x_358);
x_361 = l_Lean_Literal_type___closed__3;
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_362 = l_Lean_Meta_isExprDefEqAux(x_359, x_361, x_3, x_4, x_5, x_6, x_360);
if (lean_obj_tag(x_362) == 0)
{
lean_object* x_363; uint8_t x_364; 
x_363 = lean_ctor_get(x_362, 0);
lean_inc(x_363);
x_364 = lean_unbox(x_363);
lean_dec(x_363);
if (x_364 == 0)
{
uint8_t x_365; 
lean_dec(x_258);
lean_dec(x_161);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_365 = !lean_is_exclusive(x_362);
if (x_365 == 0)
{
lean_object* x_366; uint8_t x_367; lean_object* x_368; 
x_366 = lean_ctor_get(x_362, 0);
lean_dec(x_366);
x_367 = 2;
x_368 = lean_box(x_367);
lean_ctor_set(x_362, 0, x_368);
return x_362;
}
else
{
lean_object* x_369; uint8_t x_370; lean_object* x_371; lean_object* x_372; 
x_369 = lean_ctor_get(x_362, 1);
lean_inc(x_369);
lean_dec(x_362);
x_370 = 2;
x_371 = lean_box(x_370);
x_372 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_372, 0, x_371);
lean_ctor_set(x_372, 1, x_369);
return x_372;
}
}
else
{
lean_object* x_373; lean_object* x_374; 
x_373 = lean_ctor_get(x_362, 1);
lean_inc(x_373);
lean_dec(x_362);
x_374 = l_Lean_Meta_isExprDefEqAux(x_161, x_258, x_3, x_4, x_5, x_6, x_373);
if (lean_obj_tag(x_374) == 0)
{
uint8_t x_375; 
x_375 = !lean_is_exclusive(x_374);
if (x_375 == 0)
{
lean_object* x_376; uint8_t x_377; uint8_t x_378; lean_object* x_379; 
x_376 = lean_ctor_get(x_374, 0);
x_377 = lean_unbox(x_376);
lean_dec(x_376);
x_378 = l_Bool_toLBool(x_377);
x_379 = lean_box(x_378);
lean_ctor_set(x_374, 0, x_379);
return x_374;
}
else
{
lean_object* x_380; lean_object* x_381; uint8_t x_382; uint8_t x_383; lean_object* x_384; lean_object* x_385; 
x_380 = lean_ctor_get(x_374, 0);
x_381 = lean_ctor_get(x_374, 1);
lean_inc(x_381);
lean_inc(x_380);
lean_dec(x_374);
x_382 = lean_unbox(x_380);
lean_dec(x_380);
x_383 = l_Bool_toLBool(x_382);
x_384 = lean_box(x_383);
x_385 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_385, 0, x_384);
lean_ctor_set(x_385, 1, x_381);
return x_385;
}
}
else
{
uint8_t x_386; 
x_386 = !lean_is_exclusive(x_374);
if (x_386 == 0)
{
return x_374;
}
else
{
lean_object* x_387; lean_object* x_388; lean_object* x_389; 
x_387 = lean_ctor_get(x_374, 0);
x_388 = lean_ctor_get(x_374, 1);
lean_inc(x_388);
lean_inc(x_387);
lean_dec(x_374);
x_389 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_389, 0, x_387);
lean_ctor_set(x_389, 1, x_388);
return x_389;
}
}
}
}
else
{
uint8_t x_390; 
lean_dec(x_258);
lean_dec(x_161);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_390 = !lean_is_exclusive(x_362);
if (x_390 == 0)
{
return x_362;
}
else
{
lean_object* x_391; lean_object* x_392; lean_object* x_393; 
x_391 = lean_ctor_get(x_362, 0);
x_392 = lean_ctor_get(x_362, 1);
lean_inc(x_392);
lean_inc(x_391);
lean_dec(x_362);
x_393 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_393, 0, x_391);
lean_ctor_set(x_393, 1, x_392);
return x_393;
}
}
}
else
{
uint8_t x_394; 
lean_dec(x_258);
lean_dec(x_161);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_394 = !lean_is_exclusive(x_358);
if (x_394 == 0)
{
return x_358;
}
else
{
lean_object* x_395; lean_object* x_396; lean_object* x_397; 
x_395 = lean_ctor_get(x_358, 0);
x_396 = lean_ctor_get(x_358, 1);
lean_inc(x_396);
lean_inc(x_395);
lean_dec(x_358);
x_397 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_397, 0, x_395);
lean_ctor_set(x_397, 1, x_396);
return x_397;
}
}
}
}
}
else
{
uint8_t x_398; 
lean_dec(x_162);
lean_dec(x_161);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_398 = !lean_is_exclusive(x_163);
if (x_398 == 0)
{
return x_163;
}
else
{
lean_object* x_399; lean_object* x_400; lean_object* x_401; 
x_399 = lean_ctor_get(x_163, 0);
x_400 = lean_ctor_get(x_163, 1);
lean_inc(x_400);
lean_inc(x_399);
lean_dec(x_163);
x_401 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_401, 0, x_399);
lean_ctor_set(x_401, 1, x_400);
return x_401;
}
}
}
}
else
{
uint8_t x_402; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_402 = !lean_is_exclusive(x_8);
if (x_402 == 0)
{
return x_8;
}
else
{
lean_object* x_403; lean_object* x_404; lean_object* x_405; 
x_403 = lean_ctor_get(x_8, 0);
x_404 = lean_ctor_get(x_8, 1);
lean_inc(x_404);
lean_inc(x_403);
lean_dec(x_8);
x_405 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_405, 0, x_403);
lean_ctor_set(x_405, 1, x_404);
return x_405;
}
}
}
}
lean_object* initialize_Init(lean_object*);
lean_object* initialize_Lean_Data_LBool(lean_object*);
lean_object* initialize_Lean_Meta_InferType(lean_object*);
static bool _G_initialized = false;
lean_object* initialize_Lean_Meta_Offset(lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Data_LBool(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Meta_InferType(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Meta_evalNat_match__1___rarg___closed__1 = _init_l_Lean_Meta_evalNat_match__1___rarg___closed__1();
lean_mark_persistent(l_Lean_Meta_evalNat_match__1___rarg___closed__1);
l_Lean_Meta_evalNat_visit___closed__1 = _init_l_Lean_Meta_evalNat_visit___closed__1();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__1);
l_Lean_Meta_evalNat_visit___closed__2 = _init_l_Lean_Meta_evalNat_visit___closed__2();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__2);
l_Lean_Meta_evalNat_visit___closed__3 = _init_l_Lean_Meta_evalNat_visit___closed__3();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__3);
l_Lean_Meta_evalNat_visit___closed__4 = _init_l_Lean_Meta_evalNat_visit___closed__4();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__4);
l_Lean_Meta_evalNat_visit___closed__5 = _init_l_Lean_Meta_evalNat_visit___closed__5();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__5);
l_Lean_Meta_evalNat_visit___closed__6 = _init_l_Lean_Meta_evalNat_visit___closed__6();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__6);
l_Lean_Meta_evalNat_visit___closed__7 = _init_l_Lean_Meta_evalNat_visit___closed__7();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__7);
l_Lean_Meta_evalNat_visit___closed__8 = _init_l_Lean_Meta_evalNat_visit___closed__8();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__8);
l_Lean_Meta_evalNat_visit___closed__9 = _init_l_Lean_Meta_evalNat_visit___closed__9();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__9);
l_Lean_Meta_evalNat_visit___closed__10 = _init_l_Lean_Meta_evalNat_visit___closed__10();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__10);
l_Lean_Meta_evalNat_visit___closed__11 = _init_l_Lean_Meta_evalNat_visit___closed__11();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__11);
l_Lean_Meta_evalNat_visit___closed__12 = _init_l_Lean_Meta_evalNat_visit___closed__12();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__12);
l_Lean_Meta_evalNat_visit___closed__13 = _init_l_Lean_Meta_evalNat_visit___closed__13();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__13);
l_Lean_Meta_evalNat_visit___closed__14 = _init_l_Lean_Meta_evalNat_visit___closed__14();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__14);
l_Lean_Meta_evalNat_visit___closed__15 = _init_l_Lean_Meta_evalNat_visit___closed__15();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__15);
l_Lean_Meta_evalNat_visit___closed__16 = _init_l_Lean_Meta_evalNat_visit___closed__16();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__16);
l_Lean_Meta_evalNat_visit___closed__17 = _init_l_Lean_Meta_evalNat_visit___closed__17();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__17);
l_Lean_Meta_evalNat_visit___closed__18 = _init_l_Lean_Meta_evalNat_visit___closed__18();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__18);
l_Lean_Meta_evalNat_visit___closed__19 = _init_l_Lean_Meta_evalNat_visit___closed__19();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__19);
l_Lean_Meta_evalNat_visit___closed__20 = _init_l_Lean_Meta_evalNat_visit___closed__20();
lean_mark_persistent(l_Lean_Meta_evalNat_visit___closed__20);
l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset___closed__1 = _init_l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset___closed__1();
lean_mark_persistent(l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset___closed__1);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
